'registration' => self::CACHE_VERSION,
'mediawiki' => $wgVersion
'registration' => self::CACHE_VERSION,
'mediawiki' => $wgVersion
unset( $data['autoload'] );
$this->cache->set( $key, $data, 60 * 60 * 24 );
}
unset( $data['autoload'] );
$this->cache->set( $key, $data, 60 * 60 * 24 );
}
$coreVersionParser = new CoreVersionChecker( $wgVersion );
foreach ( $queue as $path => $mtime ) {
$json = file_get_contents( $path );
$coreVersionParser = new CoreVersionChecker( $wgVersion );
foreach ( $queue as $path => $mtime ) {
$json = file_get_contents( $path );
foreach ( $info['globals'] as $key => $val ) {
// If a merge strategy is set, read it and remove it from the value
// so it doesn't accidentally end up getting set.
foreach ( $info['globals'] as $key => $val ) {
// If a merge strategy is set, read it and remove it from the value
// so it doesn't accidentally end up getting set.
- // Need to check $val is an array for PHP 5.3 which will return
- // true on isset( 'string'['foo'] ).
- if ( isset( $val[self::MERGE_STRATEGY] ) && is_array( $val ) ) {
+ if ( is_array( $val ) && isset( $val[self::MERGE_STRATEGY] ) ) {