dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Handle missing titles and usernames when importing log items
[lhc/web/wiklou.git]
/
maintenance
/
checkSyntax.php
diff --git
a/maintenance/checkSyntax.php
b/maintenance/checkSyntax.php
index
6ef4909
..
30a23d3
100644
(file)
--- a/
maintenance/checkSyntax.php
+++ b/
maintenance/checkSyntax.php
@@
-121,9
+121,9
@@
class CheckSyntax extends Maintenance {
return; // process only this path
} elseif ( $this->hasOption( 'list-file' ) ) {
$file = $this->getOption( 'list-file' );
return; // process only this path
} elseif ( $this->hasOption( 'list-file' ) ) {
$file = $this->getOption( 'list-file' );
-
wfS
uppressWarnings();
+
MediaWiki\s
uppressWarnings();
$f = fopen( $file, 'r' );
$f = fopen( $file, 'r' );
-
wfR
estoreWarnings();
+
MediaWiki\r
estoreWarnings();
if ( !$f ) {
$this->error( "Can't open file $file\n", true );
}
if ( !$f ) {
$this->error( "Can't open file $file\n", true );
}
@@
-345,7
+345,6
@@
class CheckSyntax extends Maintenance {
* or pointless ?> closing tags at the end.
*
* @param string $file String Path to a file to check for errors
* or pointless ?> closing tags at the end.
*
* @param string $file String Path to a file to check for errors
- * @return bool
*/
private function checkForMistakes( $file ) {
foreach ( $this->mNoStyleCheckPaths as $regex ) {
*/
private function checkForMistakes( $file ) {
foreach ( $this->mNoStyleCheckPaths as $regex ) {