コード例 #1
0
ファイル: ResourceLoader.php プロジェクト: ErdemA/mediawiki
 /**
  * Get global LESS variables.
  *
  * @param Config $config
  * @since 1.22
  * @return array Map of variable names to string CSS values.
  */
 public static function getLessVars(Config $config)
 {
     if (!self::$lessVars) {
         $lessVars = $config->get('ResourceLoaderLESSVars');
         Hooks::run('ResourceLoaderGetLessVars', array(&$lessVars));
         // Sort by key to ensure consistent hashing for cache lookups.
         ksort($lessVars);
         self::$lessVars = $lessVars;
     }
     return self::$lessVars;
 }
コード例 #2
0
ファイル: ResourceLoader.php プロジェクト: agothro/mediawiki
 /**
  * Get global LESS variables.
  *
  * @param Config $config
  * @since 1.22
  * @return array Map of variable names to string CSS values.
  */
 public static function getLessVars(Config $config)
 {
     if (!self::$lessVars) {
         $lessVars = $config->get('ResourceLoaderLESSVars');
         Hooks::run('ResourceLoaderGetLessVars', array(&$lessVars));
         self::$lessVars = $lessVars;
     }
     return self::$lessVars;
 }