/** * @param array $styles * @return array */ public static function findStylesheetFiles($styles) { // Read the selected theme from the config file $theme = OC_Util::getTheme(); $locator = new \OC\Template\CSSResourceLocator(OC::$server->getLogger(), $theme, array(OC::$SERVERROOT => OC::$WEBROOT), array(OC::$THIRDPARTYROOT => OC::$THIRDPARTYWEBROOT)); $locator->find($styles); return $locator->getResources(); }
/** * @param array $styles * @return array */ public static function findStylesheetFiles($styles) { // 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\CSSResourceLocator($theme, $fext, array(OC::$SERVERROOT => OC::$WEBROOT), array(OC::$THIRDPARTYROOT => OC::$THIRDPARTYWEBROOT)); $locator->find($styles); return $locator->getResources(); }