diff options
| author | fisharebest <fisharebest@gmail.com> | 2010-06-28 18:27:56 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2010-06-28 18:27:56 +0000 |
| commit | c447414953f1446369e1bea45b95d6d8da248db4 (patch) | |
| tree | 07b1884fb864286a7b50be01a8d56e2183315f6f /includes/controllers/repository_ctrl.php | |
| parent | d8ea78722c513d8a7b8df445e826e957e5eae58e (diff) | |
| download | webtrees-c447414953f1446369e1bea45b95d6d8da248db4.tar.gz webtrees-c447414953f1446369e1bea45b95d6d8da248db4.tar.bz2 webtrees-c447414953f1446369e1bea45b95d6d8da248db4.zip | |
Functions should return by value, not by reference - unless specifically returning a reference to a singleton object
Diffstat (limited to 'includes/controllers/repository_ctrl.php')
| -rw-r--r-- | includes/controllers/repository_ctrl.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/controllers/repository_ctrl.php b/includes/controllers/repository_ctrl.php index 0427d5209b..e019293fc1 100644 --- a/includes/controllers/repository_ctrl.php +++ b/includes/controllers/repository_ctrl.php @@ -168,7 +168,7 @@ class RepositoryControllerRoot extends BaseController { * get edit menut * @return Menu */ - function &getEditMenu() { + function getEditMenu() { global $TEXT_DIRECTION, $WT_IMAGE_DIR, $WT_IMAGES, $GEDCOM; global $SHOW_GEDCOM_RECORD; if ($TEXT_DIRECTION=="rtl") $ff="_rtl"; @@ -255,7 +255,7 @@ class RepositoryControllerRoot extends BaseController { * get the other menu * @return Menu */ - function &getOtherMenu() { + function getOtherMenu() { global $TEXT_DIRECTION, $WT_IMAGE_DIR, $WT_IMAGES, $GEDCOM, $SHOW_GEDCOM_RECORD; if ($TEXT_DIRECTION=="rtl") $ff="_rtl"; |
