From 8fb1564ff9c1faab6dd9792ed350abd499f02e4e Mon Sep 17 00:00:00 2001 From: cash Date: Wed, 16 Mar 2011 10:57:40 +0000 Subject: Fixes #3145 adds a default for menu sort_by git-svn-id: http://code.elgg.org/elgg/trunk@8733 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/classes/ElggMenuBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engine') diff --git a/engine/classes/ElggMenuBuilder.php b/engine/classes/ElggMenuBuilder.php index dcf147d19..90ce4eb68 100644 --- a/engine/classes/ElggMenuBuilder.php +++ b/engine/classes/ElggMenuBuilder.php @@ -28,7 +28,7 @@ class ElggMenuBuilder { * @param mixed $sort_by * @return array */ - public function getMenu($sort_by) { + public function getMenu($sort_by = 'text') { $this->selectFromContext(); -- cgit v1.2.3