Follow up r79759. Title::loadRestrictionsFromRows called by LiquidThreads
authorPlatonides <platonides@users.mediawiki.org>
Thu, 6 Jan 2011 22:19:42 +0000 (22:19 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Thu, 6 Jan 2011 22:19:42 +0000 (22:19 +0000)
includes/Title.php

index 429130c..106eabe 100644 (file)
@@ -2153,13 +2153,14 @@ class Title {
 
        /**
         * Compiles list of active page restrictions from both page table (pre 1.10)
-        * and page_restrictions table for this existing page
+        * and page_restrictions table for this existing page.
+        * Public for usage by LiquidThreads.
         *
         * @param $rows array of db result objects
         * @param $oldFashionedRestrictions string comma-separated list of page
         *        restrictions from page table (pre 1.10)
         */
-       private function loadRestrictionsFromRows( $rows, $oldFashionedRestrictions = null ) {
+       public function loadRestrictionsFromRows( $rows, $oldFashionedRestrictions = null ) {
                $dbr = wfGetDB( DB_SLAVE );
 
                $restrictionTypes = $this->getRestrictionTypes();