Revision: 8498
Author:   xqt
Date:     2010-09-08 13:56:56 +0000 (Wed, 08 Sep 2010)

Log Message:
-----------
Delete categories only if there are no related pages

Modified Paths:
--------------
    branches/rewrite/scripts/category.py

Modified: branches/rewrite/scripts/category.py
===================================================================
--- branches/rewrite/scripts/category.py        2010-09-08 13:34:55 UTC (rev 
8497)
+++ branches/rewrite/scripts/category.py        2010-09-08 13:56:56 UTC (rev 
8498)
@@ -753,7 +753,7 @@
             for subcategory in subcategories:
                 catlib.change_category(subcategory, self.cat, None, comment = 
self.editSummary, inPlace = self.inPlace)
         # Deletes the category page
-        if self.cat.exists() and self.cat.isEmpty():
+        if self.cat.exists() and self.cat.isEmptyCategory():
             if self.useSummaryForDeletion and self.editSummary:
                 reason = self.editSummary
             else:



_______________________________________________
Pywikipedia-svn mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-svn

Reply via email to