r65874 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r65873‎ | r65874 | r65875 >
Date:20:29, 3 May 2010
Author:kipcool
Status:deferred
Tags:
Comment:
adapted to nice urls
Modified paths:
  • /trunk/extensions/Wikidata/OmegaWiki/SpecialOWStatistics.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Wikidata/OmegaWiki/SpecialOWStatistics.php
@@ -34,7 +34,7 @@
3535 $wgOut->addHTML( $this->getDefinitionPerLanguage () );
3636 else if ( $showstat == 'syntrans' )
3737 $wgOut->addHTML( $this->getSyntransPerLanguage () );
38 - else // exp by default
 38+ else if ( $showstat == 'exp' )
3939 $wgOut->addHTML ( $this->getExpressionPerLanguage () ) ;
4040 }
4141
@@ -42,7 +42,8 @@
4343 global $wgArticlePath;
4444 if ( $showstat != $val ) {
4545 $url = str_replace( "$1", 'Special:Ow_statistics' , $wgArticlePath );
46 - return "<a href=\"$url&showstat=$val\">$text</a>" ;
 46+ $url .= strpos($url , "?") ? "&showstat=$val":"?showstat=$val";
 47+ return "<a href=\"$url\">$text</a>" ;
4748 } else {
4849 return "<b>$text</b>" ;
4950 }

Status & tagging log