Index: trunk/phase3/includes/resourceloader/ResourceLoaderContext.php |
— | — | @@ -83,10 +83,16 @@ |
84 | 84 | } else { |
85 | 85 | // This is a set of modules in foo.bar,baz notation |
86 | 86 | $pos = strrpos( $group, '.' ); |
87 | | - $prefix = substr( $group, 0, $pos ); // 'foo' |
88 | | - $suffixes = explode( ',', substr( $group, $pos + 1 ) ); // array( 'bar', 'baz' ) |
89 | | - foreach ( $suffixes as $suffix ) { |
90 | | - $retval[] = "$prefix.$suffix"; |
| 87 | + if ( $pos === false ) { |
| 88 | + // Prefixless modules, i.e. without dots |
| 89 | + $retval = explode( ',', $group ); |
| 90 | + } else { |
| 91 | + // We have a prefix and a bunch of suffixes |
| 92 | + $prefix = substr( $group, 0, $pos ); // 'foo' |
| 93 | + $suffixes = explode( ',', substr( $group, $pos + 1 ) ); // array( 'bar', 'baz' ) |
| 94 | + foreach ( $suffixes as $suffix ) { |
| 95 | + $retval[] = "$prefix.$suffix"; |
| 96 | + } |
91 | 97 | } |
92 | 98 | } |
93 | 99 | } |