Merge "Add support for mulitpart mime email to email sending code"
[lhc/web/wiklou.git] / includes / resourceloader / ResourceLoaderSiteModule.php
index 2336acb..1cc5c1a 100644 (file)
@@ -1,5 +1,7 @@
 <?php
 /**
+ * Resource loader module for site customizations.
+ *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
@@ -29,23 +31,24 @@ class ResourceLoaderSiteModule extends ResourceLoaderWikiModule {
 
        /**
         * Gets list of pages used by this module
-        * 
+        *
+        * @param $context ResourceLoaderContext
+        *
         * @return Array: List of pages
         */
        protected function getPages( ResourceLoaderContext $context ) {
                global $wgHandheldStyle;
 
                $pages = array(
-                       'Common.js' => array( 'ns' => NS_MEDIAWIKI, 'type' => 'script' ),
-                       'Common.css' => array( 'ns' => NS_MEDIAWIKI, 'type' => 'style' ),
-                       ucfirst( $context->getSkin() ) . '.js' => array( 'ns' => NS_MEDIAWIKI, 'type' => 'script' ),
-                       ucfirst( $context->getSkin() ) . '.css' => array( 'ns' => NS_MEDIAWIKI, 'type' => 'style' ),
-                       'Print.css' => array( 'ns' => NS_MEDIAWIKI, 'type' => 'style', 'media' => 'print' ),
+                       'MediaWiki:Common.js' => array( 'type' => 'script' ),
+                       'MediaWiki:Common.css' => array( 'type' => 'style' ),
+                       'MediaWiki:' . ucfirst( $context->getSkin() ) . '.js' => array( 'type' => 'script' ),
+                       'MediaWiki:' . ucfirst( $context->getSkin() ) . '.css' => array( 'type' => 'style' ),
+                       'MediaWiki:Print.css' => array( 'type' => 'style', 'media' => 'print' ),
                );
                if ( $wgHandheldStyle ) {
-                       $pages['Handheld.css'] = array( 
-                               'ns' => NS_MEDIAWIKI, 
-                               'type' => 'style', 
+                       $pages['MediaWiki:Handheld.css'] = array(
+                               'type' => 'style',
                                'media' => 'handheld' );
                }
                return $pages;
@@ -55,7 +58,7 @@ class ResourceLoaderSiteModule extends ResourceLoaderWikiModule {
 
        /**
         * Gets group name
-        * 
+        *
         * @return String: Name of group
         */
        public function getGroup() {