Index: trunk/phase3/includes/SpecialLockdb.php |
— | — | @@ -126,7 +126,7 @@ |
127 | 127 | $wgOut->addWikiText( wfMsg( 'lockdbsuccesstext' ) ); |
128 | 128 | } |
129 | 129 | |
130 | | - function notWritable() { |
| 130 | + public static function notWritable() { |
131 | 131 | global $wgOut; |
132 | 132 | $wgOut->errorPage( 'lockdb', 'lockfilenotwritable' ); |
133 | 133 | } |
Index: trunk/phase3/includes/SpecialVersion.php |
— | — | @@ -110,21 +110,19 @@ |
111 | 111 | $out .= wfOpenElement('table', array('id' => 'sv-ext') ); |
112 | 112 | |
113 | 113 | foreach ( $extensionTypes as $type => $text ) { |
114 | | - if ( count( @$wgExtensionCredits[$type] ) ) { |
| 114 | + if ( isset ( $wgExtensionCredits[$type] ) && count ( $wgExtensionCredits[$type] ) ) { |
115 | 115 | $out .= $this->openExtType( $text ); |
116 | 116 | |
117 | 117 | usort( $wgExtensionCredits[$type], array( $this, 'compare' ) ); |
118 | 118 | |
119 | 119 | foreach ( $wgExtensionCredits[$type] as $extension ) { |
120 | | - wfSuppressWarnings(); |
121 | 120 | $out .= $this->formatCredits( |
122 | | - $extension['name'], |
123 | | - $extension['version'], |
124 | | - $extension['author'], |
125 | | - $extension['url'], |
126 | | - $extension['description'] |
| 121 | + isset ( $extension['name'] ) ? $extension['name'] : '', |
| 122 | + isset ( $extension['version'] ) ? $extension['version'] : '', |
| 123 | + isset ( $extension['author'] ) ? $extension['author'] : '', |
| 124 | + isset ( $extension['url'] ) ? $extension['url'] : '', |
| 125 | + isset ( $extension['description'] ) ? $extension['description'] : '' |
127 | 126 | ); |
128 | | - wfRestoreWarnings(); |
129 | 127 | } |
130 | 128 | } |
131 | 129 | } |
— | — | @@ -292,10 +290,7 @@ |
293 | 291 | return false; |
294 | 292 | } |
295 | 293 | |
296 | | - // SimpleXml whines about the xmlns... |
297 | | - wfSuppressWarnings(); |
298 | | - $xml = simplexml_load_file( $entries ); |
299 | | - wfRestoreWarnings(); |
| 294 | + $xml = simplexml_load_file( $entries, "SimpleXMLElement", LIBXML_NOWARNING ); |
300 | 295 | |
301 | 296 | if( $xml ) { |
302 | 297 | foreach( $xml->entry as $entry ) { |