]> source.dussan.org Git - nextcloud-server.git/commitdiff
Template: Make getFormFactorExtension function public
authorBart Visscher <bartv@thisnet.nl>
Mon, 14 May 2012 15:38:08 +0000 (17:38 +0200)
committerBart Visscher <bartv@thisnet.nl>
Wed, 16 May 2012 16:53:46 +0000 (18:53 +0200)
lib/template.php

index 57e9c15f5e689a6c79ae0a6ed53f71e38ab6259a..1e8b0adc75f2398fc1ae4743df392ce1d6aa8368 100644 (file)
@@ -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){