merged master
[lhc/web/wiklou.git] / includes / LinksUpdate.php
index 0712ac8..57a9ed9 100644 (file)
@@ -39,8 +39,6 @@ class LinksUpdate extends SqlDataUpdate {
                $mCategories,    //!< Map of category names to sort keys
                $mInterlangs,    //!< Map of language codes to titles
                $mProperties,    //!< Map of arbitrary name to value
-               $mDb,            //!< Database connection reference
-               $mOptions,       //!< SELECT options to be used (array)
                $mRecursive;     //!< Whether to queue jobs for recursive updates
 
        /**
@@ -65,12 +63,14 @@ class LinksUpdate extends SqlDataUpdate {
 
                $this->mTitle = $title;
                $this->mId = $title->getArticleID();
+               assert( $this->mId > 0 );
 
                if ( !$this->mId ) {
                        throw new MWException( "The Title object did not provide an article ID. Perhaps the page doesn't exist?" );
                }
 
                $this->mParserOutput = $parserOutput;
+
                $this->mLinks = $parserOutput->getLinks();
                $this->mImages = $parserOutput->getImages();
                $this->mTemplates = $parserOutput->getTemplates();