dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8207ae
)
Exclude null rows from Special:MediaStatistics
author
Brian Wolff
<bawolff+wn@gmail.com>
Wed, 25 Feb 2015 22:23:46 +0000
(18:23 -0400)
committer
Brian Wolff
<bawolff+wn@gmail.com>
Wed, 25 Feb 2015 22:23:46 +0000
(18:23 -0400)
The commons db has a random null row in the image table, adding
a non-sensical row to this report.
Bug: T74535
Change-Id: Ie290e588af56aee7d5303954202f7923b64d2272
includes/specials/SpecialMediaStatistics.php
patch
|
blob
|
history
diff --git
a/includes/specials/SpecialMediaStatistics.php
b/includes/specials/SpecialMediaStatistics.php
index
1056cda
..
b62de5d
100644
(file)
--- a/
includes/specials/SpecialMediaStatistics.php
+++ b/
includes/specials/SpecialMediaStatistics.php
@@
-73,6
+73,10
@@
class MediaStatisticsPage extends QueryPage {
'namespace' => NS_MEDIA, /* needs to be something */
'value' => '1'
),
+ 'conds' => array(
+ // WMF has a random null row in the db
+ 'img_media_type IS NOT NULL'
+ ),
'options' => array(
'GROUP BY' => array(
'img_media_type',