forked from GNUsocial/gnu-social
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:
@@ -248,11 +248,11 @@ class OpenIDPlugin extends Plugin
|
||||
*
|
||||
* If we're in openidOnly mode, we disable the menu for all other login.
|
||||
*
|
||||
* @param Action &$action Action being executed
|
||||
* @param Action $action Action being executed
|
||||
*
|
||||
* @return boolean hook return
|
||||
*/
|
||||
function onStartLoginGroupNav(&$action)
|
||||
function onStartLoginGroupNav($action)
|
||||
{
|
||||
if (common_config('site', 'openidonly')) {
|
||||
$this->showOpenIDLoginTab($action);
|
||||
@@ -268,11 +268,11 @@ class OpenIDPlugin extends Plugin
|
||||
/**
|
||||
* Menu item for login
|
||||
*
|
||||
* @param Action &$action Action being executed
|
||||
* @param Action $action Action being executed
|
||||
*
|
||||
* @return boolean hook return
|
||||
*/
|
||||
function onEndLoginGroupNav(&$action)
|
||||
function onEndLoginGroupNav($action)
|
||||
{
|
||||
$this->showOpenIDLoginTab($action);
|
||||
|
||||
@@ -318,11 +318,11 @@ class OpenIDPlugin extends Plugin
|
||||
/**
|
||||
* Menu item for OpenID settings
|
||||
*
|
||||
* @param Action &$action Action being executed
|
||||
* @param Action $action Action being executed
|
||||
*
|
||||
* @return boolean hook return
|
||||
*/
|
||||
function onEndAccountSettingsNav(&$action)
|
||||
function onEndAccountSettingsNav($action)
|
||||
{
|
||||
$action_name = $action->trimmed('action');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user