some todo comments
authordaniel <daniel.kinzler@wikimedia.de>
Wed, 18 Apr 2012 13:02:35 +0000 (15:02 +0200)
committerdaniel <daniel.kinzler@wikimedia.de>
Wed, 18 Apr 2012 13:02:35 +0000 (15:02 +0200)
includes/ContentHandler.php
includes/WikiPage.php

index 13ad350..c6daeff 100644 (file)
@@ -605,6 +605,9 @@ abstract class ContentHandler {
         return $reason;
     }
 
+    #TODO: getSecondaryUpdatesForDeletion( Content ) returns an array of SecondaryDataUpdate objects
+    #... or do that in the Content class?
+
     /**
      * Get the Content object that needs to be saved in order to undo all revisions
      * between $undo and $undoafter. Revisions must belong to the same page,
index 3088131..8f5d9a5 100644 (file)
@@ -2271,6 +2271,8 @@ class WikiPage extends Page {
 
                $this->updateCategoryCounts( array(), $cats );
 
+        #TODO: move this to an Update object!
+
                # If using cascading deletes, we can skip some explicit deletes
                if ( !$dbw->cascadingDeletes() ) {
                        $dbw->delete( 'revision', array( 'rev_page' => $id ), __METHOD__ );