Warning cleanup: drop reference on router parameter to RouterInitialized event handlers.
We don't (and don't need to) pass a reference here, and the mix can trigger warnings.
This commit is contained in:
parent
2c1af973bb
commit
fd650715fa
|
@ -58,7 +58,7 @@ class FacebookPlugin extends Plugin
|
|||
* @return boolean hook return
|
||||
*/
|
||||
|
||||
function onRouterInitialized(&$m)
|
||||
function onRouterInitialized($m)
|
||||
{
|
||||
|
||||
// Facebook App stuff
|
||||
|
|
|
@ -62,7 +62,7 @@ class OpenIDPlugin extends Plugin
|
|||
* @return boolean hook return
|
||||
*/
|
||||
|
||||
function onRouterInitialized(&$m)
|
||||
function onRouterInitialized($m)
|
||||
{
|
||||
$m->connect('main/openid', array('action' => 'openidlogin'));
|
||||
$m->connect('settings/openid', array('action' => 'openidsettings'));
|
||||
|
|
|
@ -32,7 +32,7 @@ class TemplatePlugin extends Plugin {
|
|||
// capture the RouterInitialized event
|
||||
// and connect a new API method
|
||||
// for updating the template
|
||||
function onRouterInitialized( &$m ) {
|
||||
function onRouterInitialized( $m ) {
|
||||
$m->connect( 'template/update', array(
|
||||
'action' => 'template',
|
||||
));
|
||||
|
|
|
@ -60,12 +60,12 @@ class TwitterBridgePlugin extends Plugin
|
|||
*
|
||||
* Hook for RouterInitialized event.
|
||||
*
|
||||
* @param Net_URL_Mapper &$m path-to-action mapper
|
||||
* @param Net_URL_Mapper $m path-to-action mapper
|
||||
*
|
||||
* @return boolean hook return
|
||||
*/
|
||||
|
||||
function onRouterInitialized(&$m)
|
||||
function onRouterInitialized($m)
|
||||
{
|
||||
$m->connect('twitter/authorization',
|
||||
array('action' => 'twitterauthorization'));
|
||||
|
|
Loading…
Reference in New Issue
Block a user