if (!is_array($wgHooks)) {
throw new MWException("Global hooks array is not an array!\n");
- return false;
}
if (!is_array($wgHooks[$event])) {
throw new MWException("Hooks array for event '$event' is not an array!\n");
- return false;
}
foreach ($wgHooks[$event] as $index => $hook) {
}
// This shouldn't happen either
throw new MWException( __METHOD__.': parameter not found' );
- return array( false, false );
}
/**
return isset( $nslist[$index] );
}
-
/**
* Returns array of all defined namespaces with their canonical
* (English) names.
$sql = $this->selectSQLText( $table, $vars, $conds, $fname, $options, $join_conds );
if ( isset( $options['EXPLAIN'] ) ) {
sqlsrv_query( $this->mConn, "SET SHOWPLAN_ALL ON;" );
- return $this->query( $sql, $fname );
+ $ret = $this->query( $sql, $fname );
sqlsrv_query( $this->mConn, "SET SHOWPLAN_ALL OFF;" );
+ return $ret;
}
return $this->query( $sql, $fname );
}
$this->deleted = $row->fa_deleted;
} else {
throw new MWException( 'This title does not correspond to an image page.' );
- return;
}
$this->dataLoaded = true;
$this->exists = true;
$this->getName(),
isset( $params['width'] ) ? $params['width'] : -1,
isset( $params['height'] ) ? $params['height'] : -1 );
- return $this->handler->getTransform( $this, 'bogus', $thumbUrl, $params );;
+ return $this->handler->getTransform( $this, 'bogus', $thumbUrl, $params );
}
// Info we can get from API...
// Read chunks
while( !feof( $fh ) ) {
$buf = fread( $fh, 4 );
- if( !$buf ) { throw new Exception( __METHOD__ . ": Read error" ); return; }
+ if( !$buf ) {
+ throw new Exception( __METHOD__ . ": Read error" );
+ }
$chunk_size = unpack( "N", $buf);
$chunk_size = $chunk_size[1];
$chunk_type = fread( $fh, 4 );
- if( !$chunk_type ) { throw new Exception( __METHOD__ . ": Read error" ); return; }
+ if( !$chunk_type ) {
+ throw new Exception( __METHOD__ . ": Read error" );
+ }
if ( $chunk_type == "acTL" ) {
$buf = fread( $fh, $chunk_size );
- if( !$buf ) { throw new Exception( __METHOD__ . ": Read error" ); return; }
+ if( !$buf ) {
+ throw new Exception( __METHOD__ . ": Read error" );
+ }
$actl = unpack( "Nframes/Nplays", $buf );
$frameCount = $actl['frames'];
$loopCount = $actl['plays'];
} elseif ( $chunk_type == "fcTL" ) {
$buf = fread( $fh, $chunk_size );
- if( !$buf ) { throw new Exception( __METHOD__ . ": Read error" ); return; }
+ if( !$buf ) {
+ throw new Exception( __METHOD__ . ": Read error" );
+ }
$buf = substr( $buf, 20 );
$fctldur = unpack( "ndelay_num/ndelay_den", $buf );
} catch( PasswordError $e ) {
wfRunHooks( 'PrefsPasswordAudit', array( $user, $newpass, 'error' ) );
throw new PasswordError( $e->getMessage() );
- return;
}
$user->setCookies();
function removeSearchData() {
return;
- while ( count( $this->pageList ) ) {
+ /*while ( count( $this->pageList ) ) {
list( $title, $id ) = array_pop( $this->pageList );
$article = new Article( $title, $id );
$article->doDeleteArticle( "Search Test" );
- }
+ }*/
}
function fetchIds( $results ) {