r24053 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r24052‎ | r24053 | r24054 >
Date:08:40, 13 July 2007
Author:nickj
Status:old
Tags:
Comment:
Mark Mediawiki::articleFromTitle() as static to prevent following strict standards warning:
---------------------------------
Non-static method MediaWiki::articleFromTitle() should not be called statically in extensions/TalkHere/TalkHere.php on line 81
---------------------------------
Modified paths:
  • /trunk/phase3/includes/Wiki.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Wiki.php
@@ -221,7 +221,7 @@
222222 * @param Title $title
223223 * @return Article
224224 */
225 - function articleFromTitle( $title ) {
 225+ static function articleFromTitle( $title ) {
226226 $article = null;
227227 wfRunHooks('ArticleFromTitle', array( &$title, &$article ) );
228228 if ( $article ) {

Follow-up revisions

RevisionCommit summaryAuthorDate
r24096Merged revisions 23910-24094 via svnmerge from...david22:38, 14 July 2007

Status & tagging log