r34651 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r34650‎ | r34651 | r34652 >
Date:11:58, 12 May 2008
Author:greg
Status:old
Tags:
Comment:
Don't hardcode non-standard paths.
Modified paths:
  • /trunk/extensions/ImageTagging/SpecialTaggedImages.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ImageTagging/SpecialTaggedImages.php
@@ -10,7 +10,6 @@
1111
1212 $wgExtensionFunctions[] = 'wfSpecialTaggedImages';
1313
14 -
1514 function wfSpecialTaggedImages() {
1615 global $wgMessageCache;
1716
@@ -41,13 +40,14 @@
4241 global $wgRequest;
4342 global $wgOut;
4443
45 - $wgOut->addScript("<style type=\"text/css\">/*<![CDATA[*/ @import \"$GLOBALS[wgScriptPath]/extensions/wikia/ImageTagging/img_tagging.css?$GLOBALS[wgStyleVersion]\"; /*]]>*/</style>\n");
 44+ $wgOut->addScript("<style type=\"text/css\">/*<![CDATA[*/ @import \"$GLOBALS[wgScriptPath]/extensions/ImageTagging/img_tagging.css?$GLOBALS[wgStyleVersion]\"; /*]]>*/</style>\n");
4645
4746 $this->mQuery = preg_replace( "/[\"'<>]/", "", $wgRequest->getText('q') );
4847 $this->mStartPage = preg_replace( "/[\"'<>]/", "", $wgRequest->getVal('page') );
4948 $this->mCount = 0;
50 - if ( ! $this->mStartPage ) $this->mStartPage = 0;
51 - $this->mImages = array();
 49+ if ( ! $this->mStartPage )
 50+ $this->mStartPage = 0;
 51+ $this->mImages = array();
5252
5353 SpecialPage::SpecialPage("TaggedImages");
5454 }

Status & tagging log