r69055 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r69054‎ | r69055 | r69056 >
Date:14:24, 5 July 2010
Author:maxsem
Status:deferred
Tags:
Comment:
mw-editcount: fixed syntax errors (bug 24267)
Modified paths:
  • /trunk/extensions/mw-editcount/EditCount.php (modified) (history)
  • /trunk/extensions/mw-editcount/EditCountPage.php (modified) (history)

Diff [purge]

Index: trunk/extensions/mw-editcount/EditCountPage.php
@@ -62,7 +62,7 @@
6363
6464 $nt = Title::newFromURL($this->target);
6565 if (!$nt) {
66 - $wgOut->addWikiMsg("editcount-notuser", $this->target));
 66+ $wgOut->addWikiMsg("editcount-notuser", $this->target);
6767 wfProfileOut(__METHOD__);
6868 return;
6969 }
@@ -86,7 +86,7 @@
8787 wfProfileIn(__METHOD__);
8888
8989 if ($ec->getTotal() == 0) {
90 - $wgOut->addWikiMsg("editcount-noedits", $ec->getName()));
 90+ $wgOut->addWikiMsg("editcount-noedits", $ec->getName());
9191 wfProfileOut(__METHOD__);
9292 return;
9393 }
Index: trunk/extensions/mw-editcount/EditCount.php
@@ -152,7 +152,7 @@
153153
154154 //FIXME: don't use is_numeric
155155 if (!is_numeric($param2)) {
156 - $index = Namespace::getCanonicalIndex(strtolower($param2));
 156+ $index = MWNamespace::getCanonicalIndex(strtolower($param2));
157157 if ($index === null) {
158158 wfProfileOut(__FUNCTION__);
159159 return array("found" => false);

Status & tagging log