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:
Brion Vibber 2009-10-29 13:55:37 -04:00
parent 2c1af973bb
commit fd650715fa
4 changed files with 5 additions and 5 deletions

View File

@ -58,7 +58,7 @@ class FacebookPlugin extends Plugin
* @return boolean hook return
*/
function onRouterInitialized(&$m)
function onRouterInitialized($m)
{
// Facebook App stuff

View File

@ -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'));

View File

@ -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',
));

View File

@ -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'));