http://www.mediawiki.org/wiki/Special:Code/MediaWiki/65428

Revision: 65428
Author:   werdna
Date:     2010-04-22 18:04:30 +0000 (Thu, 22 Apr 2010)

Log Message:
-----------
Add an exception to synchroniseArticleData when called on a null article, so 
that we get a backtrace instead of a fatal.

Modified Paths:
--------------
    trunk/extensions/LiquidThreads/classes/Threads.php

Modified: trunk/extensions/LiquidThreads/classes/Threads.php
===================================================================
--- trunk/extensions/LiquidThreads/classes/Threads.php  2010-04-22 17:48:52 UTC 
(rev 65427)
+++ trunk/extensions/LiquidThreads/classes/Threads.php  2010-04-22 18:04:30 UTC 
(rev 65428)
@@ -286,6 +286,10 @@
        // If the queueMore parameter is set and rows are left to update, a job 
queue item
        //  will then be added with the same limit, to finish the remainder of 
the update.
        static function synchroniseArticleData( $article, $limit = false, 
$queueMore = false ) {
+               if (!$article) {
+                       throw new MWException( "synchroniseArticleData called 
on null article" );
+               }
+       
                $dbr = wfGetDB( DB_SLAVE );
                $dbw = wfGetDB( DB_MASTER );
 



_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to