diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-05-14 17:38:08 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-05-16 18:53:46 +0200 |
commit | 6d20fe4012f9572430f993f86eba6640d66cebbc (patch) | |
tree | 39a351b7540f1e1f96ee6b797798d1a0497c2780 /lib/template.php | |
parent | fefa4412c4e4bab82517cca6f92680bcf0c71c2d (diff) | |
download | nextcloud-server-6d20fe4012f9572430f993f86eba6640d66cebbc.tar.gz nextcloud-server-6d20fe4012f9572430f993f86eba6640d66cebbc.zip |
Template: Make getFormFactorExtension function public
Diffstat (limited to 'lib/template.php')
-rw-r--r-- | lib/template.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/template.php b/lib/template.php index 57e9c15f5e6..1e8b0adc75f 100644 --- a/lib/template.php +++ b/lib/template.php @@ -163,7 +163,7 @@ class OC_Template{ /** * @brief Returns the formfactor extension for current formfactor */ - protected function getFormFactorExtension() + static public function getFormFactorExtension() { $formfactor=$_SESSION['formfactor']; if($formfactor=='default') { @@ -193,7 +193,7 @@ class OC_Template{ $theme=OC_Config::getValue( "theme" ); // Read the detected formfactor and use the right file name. - $fext = $this->getFormFactorExtension(); + $fext = self::getFormFactorExtension(); $app = $this->application; // Check if it is a app template or not. @@ -376,7 +376,7 @@ class OC_Template{ $theme=OC_Config::getValue( "theme" ); // Read the detected formfactor and use the right file name. - $fext = $this->getFormFactorExtension(); + $fext = self::getFormFactorExtension(); // Add the core js files or the js files provided by the selected theme foreach(OC_Util::$scripts as $script){ |