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:
1f17a10
)
hopefully don't die on non-gallery-laden pages which trigger this consistency check
author
Brion Vibber
<brion@users.mediawiki.org>
Wed, 19 Mar 2008 23:45:18 +0000
(23:45 +0000)
committer
Brion Vibber
<brion@users.mediawiki.org>
Wed, 19 Mar 2008 23:45:18 +0000
(23:45 +0000)
includes/CategoryPage.php
patch
|
blob
|
history
diff --git
a/includes/CategoryPage.php
b/includes/CategoryPage.php
index
315d435
..
225898b
100644
(file)
--- a/
includes/CategoryPage.php
+++ b/
includes/CategoryPage.php
@@
-484,7
+484,7
@@
class CategoryViewer {
# know the right figure.
# 3) We have no idea.
$totalrescnt = count( $this->articles ) + count( $this->children ) +
-
$this->gallery->count(
);
+
($this->showGallery ? $this->gallery->count() : 0
);
if($dbcnt == $rescnt || (($totalrescnt == $this->limit || $this->from
|| $this->until) && $dbcnt > $rescnt)){
# Case 1: seems sane.