$wgOut->addWikiText( wfMsg( 'lockdbsuccesstext' ) );
}
- function notWritable() {
+ public static function notWritable() {
global $wgOut;
$wgOut->errorPage( 'lockdb', 'lockfilenotwritable' );
}
$out .= wfOpenElement('table', array('id' => 'sv-ext') );
foreach ( $extensionTypes as $type => $text ) {
- if ( count( @$wgExtensionCredits[$type] ) ) {
+ if ( isset ( $wgExtensionCredits[$type] ) && count ( $wgExtensionCredits[$type] ) ) {
$out .= $this->openExtType( $text );
usort( $wgExtensionCredits[$type], array( $this, 'compare' ) );
foreach ( $wgExtensionCredits[$type] as $extension ) {
- wfSuppressWarnings();
$out .= $this->formatCredits(
- $extension['name'],
- $extension['version'],
- $extension['author'],
- $extension['url'],
- $extension['description']
+ isset ( $extension['name'] ) ? $extension['name'] : '',
+ isset ( $extension['version'] ) ? $extension['version'] : '',
+ isset ( $extension['author'] ) ? $extension['author'] : '',
+ isset ( $extension['url'] ) ? $extension['url'] : '',
+ isset ( $extension['description'] ) ? $extension['description'] : ''
);
- wfRestoreWarnings();
}
}
}
return false;
}
- // SimpleXml whines about the xmlns...
- wfSuppressWarnings();
- $xml = simplexml_load_file( $entries );
- wfRestoreWarnings();
+ $xml = simplexml_load_file( $entries, "SimpleXMLElement", LIBXML_NOWARNING );
if( $xml ) {
foreach( $xml->entry as $entry ) {