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:
d59d212
)
if we get a bad cat, spit a warning and *continue* processing the rest of the wiki :)
author
Brion Vibber
<brion@users.mediawiki.org>
Wed, 19 Mar 2008 23:20:01 +0000
(23:20 +0000)
committer
Brion Vibber
<brion@users.mediawiki.org>
Wed, 19 Mar 2008 23:20:01 +0000
(23:20 +0000)
maintenance/populateCategory.inc
patch
|
blob
|
history
diff --git
a/maintenance/populateCategory.inc
b/maintenance/populateCategory.inc
index
8acdaf5
..
3b006fe
100644
(file)
--- a/
maintenance/populateCategory.inc
+++ b/
maintenance/populateCategory.inc
@@
-55,10
+55,10
@@
function populateCategory( $begin, $maxlag, $throttle, $force ) {
# Use the row to update the category count
$cat = Category::newFromName( $name );
if( !is_object( $cat ) ) {
- var_dump( $cat );
- throw new MWException( "The category named $name is not valid?!" );
+ echo "The category named $name is not valid?!\n";
+ } else {
+ $cat->refreshCounts();
}
- $cat->refreshCounts();
++$i;
if( !($i % REPORTING_INTERVAL) ) {