Fix-up for I21bb3f08e7f: make ResourceLoaderModule::expandRelativePaths public
authorOri Livneh <ori@wikimedia.org>
Fri, 2 Oct 2015 00:40:21 +0000 (17:40 -0700)
committerTimo Tijhof <krinklemail@gmail.com>
Fri, 2 Oct 2015 01:05:53 +0000 (18:05 -0700)
Change-Id: Iba76d7e788c3ca5457fe462b7fd9ecfaedba50f8

includes/resourceloader/ResourceLoaderModule.php

index 5b030d7..7f7aa76 100644 (file)
@@ -461,7 +461,7 @@ abstract class ResourceLoaderModule {
         * @param array $filePaths
         * @return array
         */
-       protected static function getRelativePaths( Array $filePaths ) {
+       public static function getRelativePaths( Array $filePaths ) {
                global $IP;
                return array_map( function ( $path ) use ( $IP ) {
                        return RelPath\getRelativePath( $path, $IP );
@@ -475,7 +475,7 @@ abstract class ResourceLoaderModule {
         * @param array $filePaths
         * @return array
         */
-       protected static function expandRelativePaths( Array $filePaths ) {
+       public static function expandRelativePaths( Array $filePaths ) {
                global $IP;
                return array_map( function ( $path ) use ( $IP ) {
                        return RelPath\joinPath( $IP, $path );