Cleanup stray PHP 4-style references in hook calls for navigation bars. We can't replace the live action from here, and don't need a reference to keep the object mutable. Dumping the references helps ensure we don't end up getting errors when things calling the hooks might forget to use the reference and the PHP error reporting settings expose this fact at us.

This commit is contained in:
Brion Vibber
2011-01-18 12:34:27 -08:00
parent d0d1257d99
commit 56e2bc10d9
11 changed files with 38 additions and 38 deletions

View File

@@ -279,19 +279,19 @@ class NewMenuPlugin extends Plugin
return true;
}
function onStartAccountSettingsNav(&$action)
function onStartAccountSettingsNav($action)
{
$this->_settingsMenu($action);
return false;
}
function onStartConnectSettingsNav(&$action)
function onStartConnectSettingsNav($action)
{
$this->_settingsMenu($action);
return false;
}
private function _settingsMenu(&$action)
private function _settingsMenu($action)
{
$actionName = $action->trimmed('action');
@@ -325,7 +325,7 @@ class NewMenuPlugin extends Plugin
_('Other options'),
$actionName == 'othersettings');
Event::handle('EndAccountSettingsNav', array(&$action));
Event::handle('EndAccountSettingsNav', array($action));
if (common_config('xmpp', 'enabled')) {
$action->menuItem(common_local_url('imsettings'),
@@ -346,7 +346,7 @@ class NewMenuPlugin extends Plugin
_('Authorized connected applications'),
$actionName == 'oauthconnectionsettings');
Event::handle('EndConnectSettingsNav', array(&$action));
Event::handle('EndConnectSettingsNav', array($action));
}
function onEndShowStyles($action)