예제 #1
0
 /**
  * @param array $scripts
  * @return array
  */
 public static function findJavascriptFiles($scripts)
 {
     // Read the selected theme from the config file
     $theme = OC_Util::getTheme();
     $locator = new \OC\Template\JSResourceLocator(OC::$server->getLogger(), $theme, array(OC::$SERVERROOT => OC::$WEBROOT), array(OC::$THIRDPARTYROOT => OC::$THIRDPARTYWEBROOT));
     $locator->find($scripts);
     return $locator->getResources();
 }
예제 #2
0
 /**
  * @param array $scripts
  * @return array
  */
 public static function findJavascriptFiles($scripts)
 {
     // Read the selected theme from the config file
     $theme = OC_Util::getTheme();
     // Read the detected formfactor and use the right file name.
     $fext = self::getFormFactorExtension();
     $locator = new \OC\Template\JSResourceLocator($theme, $fext, array(OC::$SERVERROOT => OC::$WEBROOT), array(OC::$THIRDPARTYROOT => OC::$THIRDPARTYWEBROOT));
     $locator->find($scripts);
     return $locator->getResources();
 }