dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
edf7889
)
Merge "Replace create_function() with a closure"
author
jenkins-bot
<jenkins-bot@gerrit.wikimedia.org>
Thu, 10 Mar 2016 23:34:47 +0000
(23:34 +0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Thu, 10 Mar 2016 23:34:47 +0000
(23:34 +0000)
maintenance/dumpBackup.php
patch
|
blob
|
history
diff --git
a/maintenance/dumpBackup.php
b/maintenance/dumpBackup.php
index
1904325
..
d4255a0
100644
(file)
--- a/
maintenance/dumpBackup.php
+++ b/
maintenance/dumpBackup.php
@@
-102,7
+102,9
@@
TEXT
$this->fatalError( "Unable to open file {$filename}\n" );
}
$pages = array_map( 'trim', $pages );
- $this->pages = array_filter( $pages, create_function( '$x', 'return $x !== "";' ) );
+ $this->pages = array_filter( $pages, function ( $x ) {
+ return $x !== '';
+ } );
}
if ( $this->hasOption( 'start' ) ) {