Merge "Add support for single scripts, styles and debugScripts"

This commit is contained in:
jenkins-bot 2013-08-28 17:47:25 +00:00 committed by Gerrit Code Review
commit 3ec8e32a1a

View file

@ -162,7 +162,7 @@ class MakeStaticLoader extends Maintenance {
$headAdd = $bodyAdd = '';
if ( isset( $registry['styles'] ) && $target !== 'test' ){
foreach ( $registry['styles'] as $path ) {
foreach ( (array)$registry['styles'] as $path ) {
if ( strpos( $path, 've-mw/' ) === 0 ) {
continue;
}
@ -173,7 +173,7 @@ class MakeStaticLoader extends Maintenance {
}
}
if ( isset( $registry['scripts'] ) ) {
foreach ( $registry['scripts'] as $path ) {
foreach ( (array)$registry['scripts'] as $path ) {
if ( strpos( $path, 've-mw/' ) === 0 ) {
continue;
}
@ -181,7 +181,7 @@ class MakeStaticLoader extends Maintenance {
}
}
if ( isset( $registry['debugScripts'] ) ) {
foreach ( $registry['debugScripts'] as $path ) {
foreach ( (array)$registry['debugScripts'] as $path ) {
if ( strpos( $path, 've-mw/' ) === 0 ) {
continue;
}