Index: trunk/extensions/Wikidata/OmegaWiki/SpecialOWStatistics.php |
— | — | @@ -34,7 +34,7 @@ |
35 | 35 | $wgOut->addHTML( $this->getDefinitionPerLanguage () ); |
36 | 36 | else if ( $showstat == 'syntrans' ) |
37 | 37 | $wgOut->addHTML( $this->getSyntransPerLanguage () ); |
38 | | - else // exp by default |
| 38 | + else if ( $showstat == 'exp' ) |
39 | 39 | $wgOut->addHTML ( $this->getExpressionPerLanguage () ) ; |
40 | 40 | } |
41 | 41 | |
— | — | @@ -42,7 +42,8 @@ |
43 | 43 | global $wgArticlePath; |
44 | 44 | if ( $showstat != $val ) { |
45 | 45 | $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>" ; |
47 | 48 | } else { |
48 | 49 | return "<b>$text</b>" ; |
49 | 50 | } |