From 48a042cbf6c5afa0d088d1f5198aa09263442fa8 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Mon, 23 Aug 2010 22:18:05 +0000 Subject: [PATCH] Remove some unneeded whitespace --- includes/api/ApiParse.php | 2 +- includes/api/ApiQueryAllpages.php | 1 - includes/api/ApiQueryPageProps.php | 2 -- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/includes/api/ApiParse.php b/includes/api/ApiParse.php index 66868572f5..f5e520a305 100644 --- a/includes/api/ApiParse.php +++ b/includes/api/ApiParse.php @@ -235,7 +235,7 @@ class ApiParse extends ApiBase { $scripts = array( $out->getHeadScripts( $userSkin ) ); - $result_array['headitems'] = array_merge( $headItems , $css, $scripts ); + $result_array['headitems'] = array_merge( $headItems, $css, $scripts ); } if ( isset( $prop['headhtml'] ) ) { diff --git a/includes/api/ApiQueryAllpages.php b/includes/api/ApiQueryAllpages.php index 761db977a1..17348887ea 100644 --- a/includes/api/ApiQueryAllpages.php +++ b/includes/api/ApiQueryAllpages.php @@ -76,7 +76,6 @@ class ApiQueryAllpages extends ApiQueryGeneratorBase { $to = ( is_null( $params['to'] ) ? null : $this->titlePartToKey( $params['to'] ) ); $this->addWhereRange( 'page_title', $dir, $from, $to ); - if ( isset( $params['prefix'] ) ) { $this->addWhere( 'page_title' . $db->buildLike( $this->titlePartToKey( $params['prefix'] ), $db->anyString() ) ); } diff --git a/includes/api/ApiQueryPageProps.php b/includes/api/ApiQueryPageProps.php index 1628492dd1..858f08a1e2 100644 --- a/includes/api/ApiQueryPageProps.php +++ b/includes/api/ApiQueryPageProps.php @@ -69,8 +69,6 @@ class ApiQueryPageProps extends ApiQueryBase { } } - - foreach ( $this->everything as $pageid => $title ) { $pageInfo = $this->extractPageInfo( $pageid, $title, $this->params['prop'] ); $fit = $result->addValue( array( -- 2.20.1