| Index: trunk/extensions/PageBy/PageByRenderer.php |
| — | — | @@ -27,7 +27,7 @@ |
| 28 | 28 | var $showfirst; |
| 29 | 29 | var $showcomments; |
| 30 | 30 | |
| 31 | | - function __construct( $page, $argv, &$parser ) { |
| | 31 | + function __construct( $page, $argv, $parser ) { |
| 32 | 32 | global $wgTitle; |
| 33 | 33 | |
| 34 | 34 | $this->parser = $parser; |
| Index: trunk/extensions/PageBy/PageBy.php |
| — | — | @@ -33,7 +33,7 @@ |
| 34 | 34 | $wgParser->setHook( "pageby", "newsxRenderPageBy" ); |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | | -function newsxRenderPageBy( $page, $argv, &$parser ) { |
| | 37 | +function newsxRenderPageBy( $page, $argv, $parser ) { |
| 38 | 38 | $renderer = new PageByRenderer($page, $argv, $parser); |
| 39 | 39 | return $renderer->renderPageBy(); |
| 40 | 40 | } |
| Index: trunk/extensions/News/News.php |
| — | — | @@ -46,7 +46,7 @@ |
| 47 | 47 | wfLoadExtensionMessages( 'NewsExtension' ); |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | | -function wfNewsTag( $templatetext, $argv, &$parser ) { |
| | 50 | +function wfNewsTag( $templatetext, $argv, $parser ) { |
| 51 | 51 | global $wgTitle; |
| 52 | 52 | |
| 53 | 53 | $parser->disableCache(); //TODO: use smart cache & purge...? |
| — | — | @@ -55,7 +55,7 @@ |
| 56 | 56 | return $renderer->renderNews(); |
| 57 | 57 | } |
| 58 | 58 | |
| 59 | | -function wfNewsFeedTag( $templatetext, $argv, &$parser ) { |
| | 59 | +function wfNewsFeedTag( $templatetext, $argv, $parser ) { |
| 60 | 60 | global $wgTitle, $wgOut; |
| 61 | 61 | |
| 62 | 62 | $parser->disableCache(); //TODO: use smart cache & purge...? |
| — | — | @@ -76,7 +76,7 @@ |
| 77 | 77 | return NewsRenderer::renderFeedLink($linktext, $argv, $parser); |
| 78 | 78 | } |
| 79 | 79 | |
| 80 | | -function wfNewsArticleFromTitle( &$title, &$article ) { |
| | 80 | +function wfNewsArticleFromTitle( $title, &$article ) { |
| 81 | 81 | global $wgRequest, $wgFeedClasses, $wgUser, $wgOut; |
| 82 | 82 | $fname = 'extension/News: wfNewsArticleFromTitle'; |
| 83 | 83 | |
| — | — | @@ -109,7 +109,7 @@ |
| 110 | 110 | return false; |
| 111 | 111 | } |
| 112 | 112 | |
| 113 | | -function wfNewsSkinTemplateOutputPageBeforeExec( &$skin, &$tpl ) { |
| | 113 | +function wfNewsSkinTemplateOutputPageBeforeExec( $skin, $tpl ) { |
| 114 | 114 | $feeds = $tpl->data['feeds']; |
| 115 | 115 | if (!$feeds) return true; |
| 116 | 116 | |
| Index: trunk/extensions/News/NewsRenderer.php |
| — | — | @@ -54,7 +54,7 @@ |
| 55 | 55 | var $pubtrigger; //word to use in summaries to trigger publication |
| 56 | 56 | var $permalinks; //wether to force permalinks in feeds, even in publication mode |
| 57 | 57 | |
| 58 | | - static function newFromArticle( &$article, &$parser ) { |
| | 58 | + static function newFromArticle( $article, $parser ) { |
| 59 | 59 | $title = $article->getTitle(); |
| 60 | 60 | $article->getContent(); |
| 61 | 61 | $text = $article->mContent; |
| — | — | @@ -78,7 +78,7 @@ |
| 79 | 79 | return null; |
| 80 | 80 | } |
| 81 | 81 | |
| 82 | | - function __construct( $title, $templatetext, $argv, &$parser ) { |
| | 82 | + function __construct( $title, $templatetext, $argv, $parser ) { |
| 83 | 83 | global $wgContLang, $wgUser; |
| 84 | 84 | |
| 85 | 85 | $this->title = $title; |
| — | — | @@ -611,7 +611,7 @@ |
| 612 | 612 | return $url; |
| 613 | 613 | } |
| 614 | 614 | |
| 615 | | - static function renderFeedLink( $text, $argv, &$parser ) { |
| | 615 | + static function renderFeedLink( $text, $argv, $parser ) { |
| 616 | 616 | $t = @$argv['feed']; |
| 617 | 617 | if ($t) $t = NewsRenderer::replaceVariables( $parser, $t ); |
| 618 | 618 | |
| Index: trunk/extensions/DataTransclusion/DataTransclusionHandler.php |
| — | — | @@ -40,7 +40,7 @@ |
| 41 | 41 | * Entry point for the {{#record}} parser function. |
| 42 | 42 | * This is a wrapper around handleRecordTag |
| 43 | 43 | */ |
| 44 | | - static function handleRecordFunction ( &$parser ) { |
| | 44 | + static function handleRecordFunction ( $parser ) { |
| 45 | 45 | $params = func_get_args(); |
| 46 | 46 | array_shift( $params ); // first is &$parser, strip it |
| 47 | 47 | |
| — | — | @@ -132,7 +132,7 @@ |
| 133 | 133 | } |
| 134 | 134 | } |
| 135 | 135 | |
| 136 | | - static function renderTemplate( &$parser, $title, $record ) { |
| | 136 | + static function renderTemplate( $parser, $title, $record ) { |
| 137 | 137 | $p = new Article( $title ); |
| 138 | 138 | if ( !$p->exists() ) return false; |
| 139 | 139 | |
| Index: trunk/extensions/DataTransclusion/DataTransclusion.php |
| — | — | @@ -36,7 +36,7 @@ |
| 37 | 37 | |
| 38 | 38 | $wgDataTransclusionSources = array(); |
| 39 | 39 | |
| 40 | | -function efDataTransclusionSetHooks( &$parser ) { |
| | 40 | +function efDataTransclusionSetHooks( $parser ) { |
| 41 | 41 | $parser->setHook( 'record' , 'DataTransclusionHandler::handleRecordTag' ); |
| 42 | 42 | $parser->setFunctionHook( 'record' , 'DataTransclusionHandler::handleRecordFunction' ); #FIXME: this doesn't work. |
| 43 | 43 | return true; |
| Index: trunk/extensions/Gadgets/Gadgets.php |
| — | — | @@ -36,7 +36,7 @@ |
| 37 | 37 | $wgSpecialPages['Gadgets'] = 'SpecialGadgets'; |
| 38 | 38 | $wgSpecialPageGroups['Gadgets'] = 'wiki'; |
| 39 | 39 | |
| 40 | | -function wfGadgetsArticleSaveComplete( &$article, &$user, $text ) { |
| | 40 | +function wfGadgetsArticleSaveComplete( $article, $user, $text ) { |
| 41 | 41 | //update cache if MediaWiki:Gadgets-definition was edited |
| 42 | 42 | $title = $article->mTitle; |
| 43 | 43 | if( $title->getNamespace() == NS_MEDIAWIKI && $title->getText() == 'Gadgets-definition' ) { |
| — | — | @@ -157,7 +157,7 @@ |
| 158 | 158 | return true; |
| 159 | 159 | } |
| 160 | 160 | |
| 161 | | -function wfGadgetsBeforePageDisplay( &$out ) { |
| | 161 | +function wfGadgetsBeforePageDisplay( $out ) { |
| 162 | 162 | global $wgUser; |
| 163 | 163 | if ( !$wgUser->isLoggedIn() ) return true; |
| 164 | 164 | |
| — | — | @@ -188,7 +188,7 @@ |
| 189 | 189 | return true; |
| 190 | 190 | } |
| 191 | 191 | |
| 192 | | -function wfApplyGadgetCode( $code, &$out, &$done ) { |
| | 192 | +function wfApplyGadgetCode( $code, $out, &$done ) { |
| 193 | 193 | global $wgJsMimeType; |
| 194 | 194 | |
| 195 | 195 | //FIXME: stuff added via $out->addScript appears below usercss and userjs in the head tag. |
| Index: trunk/extensions/CategoryTree/CategoryTree.php |
| — | — | @@ -198,7 +198,7 @@ |
| 199 | 199 | } |
| 200 | 200 | } |
| 201 | 201 | |
| 202 | | -function efCategoryTreeSetHooks( &$parser ) { |
| | 202 | +function efCategoryTreeSetHooks( $parser ) { |
| 203 | 203 | $parser->setHook( 'categorytree' , 'efCategoryTreeParserHook' ); |
| 204 | 204 | $parser->setFunctionHook( 'categorytree' , 'efCategoryTreeParserFunction' ); |
| 205 | 205 | return true; |
| — | — | @@ -262,9 +262,9 @@ |
| 263 | 263 | * Entry point for the {{#categorytree}} tag parser function. |
| 264 | 264 | * This is a wrapper around efCategoryTreeParserHook |
| 265 | 265 | */ |
| 266 | | -function efCategoryTreeParserFunction( &$parser ) { |
| | 266 | +function efCategoryTreeParserFunction( $parser ) { |
| 267 | 267 | $params = func_get_args(); |
| 268 | | - array_shift( $params ); // first is &$parser, strip it |
| | 268 | + array_shift( $params ); // first is $parser, strip it |
| 269 | 269 | |
| 270 | 270 | // first user-supplied parameter must be category name |
| 271 | 271 | if ( !$params ) { |
| — | — | @@ -296,7 +296,7 @@ |
| 297 | 297 | * Hook implementation for injecting a category tree into the sidebar. |
| 298 | 298 | * Registered automatically if $wgCategoryTreeSidebarRoot is set to a category name. |
| 299 | 299 | */ |
| 300 | | -function efCategoryTreeSkinTemplateOutputPageBeforeExec( &$skin, &$tpl ) { |
| | 300 | +function efCategoryTreeSkinTemplateOutputPageBeforeExec( $skin, $tpl ) { |
| 301 | 301 | global $wgCategoryTreeSidebarRoot, $wgCategoryTreeSidebarOptions; |
| 302 | 302 | |
| 303 | 303 | $html = efCategoryTreeParserHook( $wgCategoryTreeSidebarRoot, $wgCategoryTreeSidebarOptions ); |
| — | — | @@ -340,7 +340,7 @@ |
| 341 | 341 | * Hook callback that injects messages and things into the <head> tag |
| 342 | 342 | * Does nothing if $parserOutput->mCategoryTreeTag is not set |
| 343 | 343 | */ |
| 344 | | -function efCategoryTreeParserOutput( &$outputPage, $parserOutput ) { |
| | 344 | +function efCategoryTreeParserOutput( $outputPage, $parserOutput ) { |
| 345 | 345 | if ( !empty( $parserOutput->mCategoryTreeTag ) ) { |
| 346 | 346 | CategoryTree::setHeaders( $outputPage ); |
| 347 | 347 | } |
| — | — | @@ -350,7 +350,7 @@ |
| 351 | 351 | /** |
| 352 | 352 | * ArticleFromTitle hook, override category page handling |
| 353 | 353 | */ |
| 354 | | -function efCategoryTreeArticleFromTitle( &$title, &$article ) { |
| | 354 | +function efCategoryTreeArticleFromTitle( $title, &$article ) { |
| 355 | 355 | if ( $title->getNamespace() == NS_CATEGORY ) { |
| 356 | 356 | $article = new CategoryTreeCategoryPage( $title ); |
| 357 | 357 | } |
| — | — | @@ -360,7 +360,7 @@ |
| 361 | 361 | /** |
| 362 | 362 | * OutputPageMakeCategoryLinks hook, override category links |
| 363 | 363 | */ |
| 364 | | -function efCategoryTreeOutputPageMakeCategoryLinks( &$out, &$categories, &$links ) { |
| | 364 | +function efCategoryTreeOutputPageMakeCategoryLinks( $out, &$categories, &$links ) { |
| 365 | 365 | global $wgContLang, $wgCategoryTreePageCategoryOptions; |
| 366 | 366 | |
| 367 | 367 | $ct = new CategoryTree( $wgCategoryTreePageCategoryOptions ); |
| — | — | @@ -372,7 +372,7 @@ |
| 373 | 373 | return false; |
| 374 | 374 | } |
| 375 | 375 | |
| 376 | | -function efCategoryTreeSkinJoinCategoryLinks( &$skin, &$links, &$result ) { |
| | 376 | +function efCategoryTreeSkinJoinCategoryLinks( $skin, &$links, &$result ) { |
| 377 | 377 | $embed = '<div class="CategoryTreePretendInlineMSIE CategoryTreeCategoryBarItem">'; |
| 378 | 378 | $pop = '</div>'; |
| 379 | 379 | $sep = ' '; |
| Index: trunk/extensions/CategoryTree/CategoryTreeFunctions.php |
| — | — | @@ -159,7 +159,7 @@ |
| 160 | 160 | * Set the script tags in an OutputPage object |
| 161 | 161 | * @param OutputPage $outputPage |
| 162 | 162 | */ |
| 163 | | - static function setHeaders( &$outputPage ) { |
| | 163 | + static function setHeaders( $outputPage ) { |
| 164 | 164 | global $wgJsMimeType, $wgScriptPath, $wgContLang; |
| 165 | 165 | global $wgCategoryTreeHijackPageCategories, $wgCategoryTreeExtPath, $wgCategoryTreeVersion; |
| 166 | 166 | |
| — | — | @@ -409,7 +409,7 @@ |
| 410 | 410 | * Returns a string with an HTML representation of the children of the given category. |
| 411 | 411 | * $title must be a Title object |
| 412 | 412 | */ |
| 413 | | - function renderChildren( &$title, $depth = 1 ) { |
| | 413 | + function renderChildren( $title, $depth = 1 ) { |
| 414 | 414 | global $wgCategoryTreeMaxChildren, $wgCategoryTreeUseCategoryTable; |
| 415 | 415 | |
| 416 | 416 | if ( $title->getNamespace() != NS_CATEGORY ) { |
| — | — | @@ -530,7 +530,7 @@ |
| 531 | 531 | * Returns a string with an HTML representation of the parents of the given category. |
| 532 | 532 | * $title must be a Title object |
| 533 | 533 | */ |
| 534 | | - function renderParents( &$title ) { |
| | 534 | + function renderParents( $title ) { |
| 535 | 535 | global $wgCategoryTreeMaxChildren; |
| 536 | 536 | |
| 537 | 537 | $dbr = wfGetDB( DB_SLAVE ); |
| Index: trunk/extensions/HTMLets/HTMLets.php |
| — | — | @@ -59,7 +59,7 @@ |
| 60 | 60 | } |
| 61 | 61 | |
| 62 | 62 | # The callback function for converting the input text to HTML output |
| 63 | | -function wfRenderHTMLet( $name, $argv, &$parser ) { |
| | 63 | +function wfRenderHTMLet( $name, $argv, $parser ) { |
| 64 | 64 | global $wgHTMLetsDirectory, $wgHTMLetsHack, $IP; |
| 65 | 65 | |
| 66 | 66 | if (@$argv['nocache']) $parser->disableCache(); |
| — | — | @@ -114,7 +114,7 @@ |
| 115 | 115 | return $output; |
| 116 | 116 | } |
| 117 | 117 | |
| 118 | | -function wfRenderHTMLetHackPostProcess( &$parser, &$text ) { |
| | 118 | +function wfRenderHTMLetHackPostProcess( $parser, &$text ) { |
| 119 | 119 | $text = preg_replace( |
| 120 | 120 | '/<!-- @HTMLetsHACK@ ([0-9a-zA-Z\\+\\/]+=*) @HTMLetsHACK@ -->/esm', |
| 121 | 121 | 'base64_decode("$1")', |