From: Aryeh Gregor Date: Thu, 26 Jun 2008 20:26:56 +0000 (+0000) Subject: Consistent whitespace X-Git-Tag: 1.31.0-rc.0~46878 X-Git-Url: https://git.cyclocoop.org/%27.%24link.%27?a=commitdiff_plain;h=d5a9ba3c7aeed2b238e29eff1741d996b5dce578;p=lhc%2Fweb%2Fwiklou.git Consistent whitespace --- diff --git a/includes/Title.php b/includes/Title.php index 459a7aead1..8cbbbd153d 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -2878,13 +2878,13 @@ class Title { ." AND cl_from <> '0'" ." ORDER BY cl_sortkey"; - $res = $dbr->query ( $sql ) ; + $res = $dbr->query( $sql ); - if($dbr->numRows($res) > 0) { - while ( $x = $dbr->fetchObject ( $res ) ) + if( $dbr->numRows( $res ) > 0 ) { + while( $x = $dbr->fetchObject( $res ) ) //$data[] = Title::newFromText($wgContLang->getNSText ( NS_CATEGORY ).':'.$x->cl_to); - $data[$wgContLang->getNSText ( NS_CATEGORY ).':'.$x->cl_to] = $this->getFullText(); - $dbr->freeResult ( $res ) ; + $data[$wgContLang->getNSText( NS_CATEGORY ).':'.$x->cl_to] = $this->getFullText(); + $dbr->freeResult( $res ); } else { $data = array(); } @@ -2901,7 +2901,7 @@ class Title { $parents = $this->getParentCategories(); if( $parents ) { - foreach($parents as $parent => $current) { + foreach( $parents as $parent => $current ) { if ( array_key_exists( $parent, $children ) ) { # Circular reference $stack[$parent] = array();