From a3183c909d53fea561f15d60413ace40c09706ef Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Thu, 19 Feb 2009 11:20:29 +0000 Subject: [PATCH] No need to get a DB object since we don't use it there --- includes/Title.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/Title.php b/includes/Title.php index cad93f94ee..37cd0b9329 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -1613,7 +1613,6 @@ class Title { return $this->mHasSubpages; } - $db = wfGetDB( DB_SLAVE ); $subpages = $this->getSubpages( 1 ); if( $subpages instanceof TitleArray ) return $this->mHasSubpages = (bool)$subpages->count(); @@ -1626,7 +1625,7 @@ class Title { * @return mixed TitleArray, or empty array if this page's namespace * doesn't allow subpages */ - public function getSubpages($limit = -1) { + public function getSubpages( $limit = -1 ) { if( !MWNamespace::hasSubpages( $this->getNamespace() ) ) return array(); -- 2.20.1