mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-25 19:26:46 +00:00
Merge "Add support for single scripts, styles and debugScripts"
This commit is contained in:
commit
3ec8e32a1a
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue