Sort the Admin > Settings menu instead of relying on module activation order.

Requires making Menu::get() return a reference.  Fixes #1545.
This commit is contained in:
Bharat Mediratta
2010-12-17 22:19:46 -08:00
parent e60edcdeba
commit dbb9b8b1c8
3 changed files with 10 additions and 2 deletions
+3 -2
View File
@@ -223,12 +223,13 @@ class Menu_Core extends Menu_Element {
/**
* Retrieve a Menu_Element by id
*/
public function get($id) {
public function &get($id) {
if (array_key_exists($id, $this->elements)) {
return $this->elements[$id];
}
return null;
$null = null;
return $null;
}
public function is_empty() {