Index: trunk/phase3/includes/Title.php |
— | — | @@ -1613,7 +1613,6 @@ |
1614 | 1614 | return $this->mHasSubpages; |
1615 | 1615 | } |
1616 | 1616 | |
1617 | | - $db = wfGetDB( DB_SLAVE ); |
1618 | 1617 | $subpages = $this->getSubpages( 1 ); |
1619 | 1618 | if( $subpages instanceof TitleArray ) |
1620 | 1619 | return $this->mHasSubpages = (bool)$subpages->count(); |
— | — | @@ -1626,7 +1625,7 @@ |
1627 | 1626 | * @return mixed TitleArray, or empty array if this page's namespace |
1628 | 1627 | * doesn't allow subpages |
1629 | 1628 | */ |
1630 | | - public function getSubpages($limit = -1) { |
| 1629 | + public function getSubpages( $limit = -1 ) { |
1631 | 1630 | if( !MWNamespace::hasSubpages( $this->getNamespace() ) ) |
1632 | 1631 | return array(); |
1633 | 1632 | |