From: Brion Vibber Date: Wed, 19 Mar 2008 23:20:01 +0000 (+0000) Subject: if we get a bad cat, spit a warning and *continue* processing the rest of the wiki :) X-Git-Tag: 1.31.0-rc.0~48966 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22suivi_revisions%22%2C%22id_auteur=%24connecte%22%29%20.%20%22?a=commitdiff_plain;h=06a02982f73c80c980a6d95c3bb4ca6e6ae83c33;p=lhc%2Fweb%2Fwiklou.git if we get a bad cat, spit a warning and *continue* processing the rest of the wiki :) --- diff --git a/maintenance/populateCategory.inc b/maintenance/populateCategory.inc index 8acdaf5b52..3b006fef5f 100644 --- 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) ) {