mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-27 18:24:03 -04:00
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user