r62202 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r62201‎ | r62202 | r62203 >
Date:21:58, 9 February 2010
Author:werdna
Status:deferred
Tags:
Comment:
Merge r62138
Modified paths:
  • /branches/wmf-deployment/extensions/LiquidThreads/classes/Dispatch.php (modified) (history)

Diff [purge]

Index: branches/wmf-deployment/extensions/LiquidThreads/classes/Dispatch.php
@@ -107,7 +107,7 @@
108108 in_array( $title->getPrefixedText(), $wgLqtPages );
109109
110110 if ( $title->exists() ) {
111 - $override = self::getUserLqtOverride( $title->getArticleId() );
 111+ $override = self::getUserLqtOverride( $title );
112112 } else {
113113 $override = null;
114114 }
@@ -122,13 +122,12 @@
123123 return $isTalkPage;
124124 }
125125
126 - static function getUserLqtOverride( $article ) {
127 - if ( !is_object( $article ) ) {
128 - $article = Article::newFromId( $article );
 126+ static function getUserLqtOverride( $title ) {
 127+ if ( ! is_object($title) ) {
 128+ return null;
129129 }
130130
131 - $title = $article->getTitle();
132 - $articleid = $article->getId();
 131+ $articleid = $title->getArticleId();
133132
134133 global $wgLiquidThreadsAllowUserControlNamespaces;
135134 global $wgLiquidThreadsAllowUserControl;
Property changes on: branches/wmf-deployment/extensions/LiquidThreads/classes/Dispatch.php
___________________________________________________________________
Name: svn:mergeinfo
136135 + /trunk/extensions/LiquidThreads/classes/Dispatch.php:57390,58990-62113,62138

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r62138LiquidThreads: Fix issues encountered with getUserLqtOverride on replicated s...werdna21:35, 8 February 2010

Status & tagging log