Dzahn has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/344679 )
Change subject: rank.php: display language name in local language (WIP)
......................................................................
rank.php: display language name in local language (WIP)
Bug: T111607
Change-Id: I5124c7a833e88db477f671087fd3e0f857a4e758
---
M var/www/wikistats/rank.php
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/debs/wikistats
refs/changes/79/344679/1
diff --git a/var/www/wikistats/rank.php b/var/www/wikistats/rank.php
index 61d6b62..51cd048 100644
--- a/var/www/wikistats/rank.php
+++ b/var/www/wikistats/rank.php
@@ -47,12 +47,12 @@
$lang=htmlspecialchars(mysql_real_escape_string($lang));
}
-$query = "select prefix,lang from wikipedias where prefix is not null order by
prefix asc";
+$query = "select prefix,lang,loclang from wikipedias where prefix is not null
order by prefix asc";
$result = mysql_query("$query") or die(mysql_error());
while($row = mysql_fetch_array( $result )) {
- $languages[$arcount]=$row[prefix]." - ".$row[lang];
+ $languages[$arcount]=$row[prefix]." - ".$row[loclang];
$arcount++;
if ($row[prefix]==$lang) {
$lang_check="OK";
--
To view, visit https://gerrit.wikimedia.org/r/344679
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I5124c7a833e88db477f671087fd3e0f857a4e758
Gerrit-PatchSet: 1
Gerrit-Project: operations/debs/wikistats
Gerrit-Branch: master
Gerrit-Owner: Dzahn <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits