From: Aaron Schulz Date: Tue, 22 Apr 2008 00:56:58 +0000 (+0000) Subject: Pass title by ref to consistently override the whole thing. Image pages where acting... X-Git-Tag: 1.31.0-rc.0~48143 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/%7B%7B%20url_for%28%27admin_users%27%29%20%7D%7D?a=commitdiff_plain;h=aa2b75a26b648372059ae79882363400205e143a;p=lhc%2Fweb%2Fwiklou.git Pass title by ref to consistently override the whole thing. Image pages where acting oddly with Media: urls, thinking the page didn't exist when it did. --- diff --git a/includes/Wiki.php b/includes/Wiki.php index 8ff137bdc4..2269d27545 100644 --- a/includes/Wiki.php +++ b/includes/Wiki.php @@ -238,7 +238,7 @@ class MediaWiki { * @param Title $title * @return Article object */ - static function articleFromTitle( $title ) { + static function articleFromTitle( &$title ) { $article = null; wfRunHooks( 'ArticleFromTitle', array( &$title, &$article ) ); if ( $article ) {