summaryrefslogtreecommitdiffstats
path: root/lib/templatelayout.php
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2012-09-07 15:22:01 +0200
committerThomas Mueller <thomas.mueller@tmit.eu>2012-09-07 15:22:01 +0200
commit3829460ab8cbb6de65c53583a20fd04cbe7927dd (patch)
tree4dc24845a5eb31b17510a621e14c15b51f16bf7b /lib/templatelayout.php
parent785aa751bb5f9a4bcdd677b96207550482e17d3c (diff)
downloadnextcloud-server-3829460ab8cbb6de65c53583a20fd04cbe7927dd.tar.gz
nextcloud-server-3829460ab8cbb6de65c53583a20fd04cbe7927dd.zip
adding space between) and {
Diffstat (limited to 'lib/templatelayout.php')
-rw-r--r--lib/templatelayout.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/templatelayout.php b/lib/templatelayout.php
index 18fd23aac95..ad013edad8c 100644
--- a/lib/templatelayout.php
+++ b/lib/templatelayout.php
@@ -7,13 +7,13 @@
*/
class OC_TemplateLayout extends OC_Template {
- public function __construct( $renderas ){
+ public function __construct( $renderas ) {
// Decide which page we show
- if( $renderas == 'user' ){
+ if( $renderas == 'user' ) {
parent::__construct( 'core', 'layout.user' );
$this->assign('searchurl',OC_Helper::linkTo( 'search', 'index.php' ), false);
- if(array_search(OC_APP::getCurrentApp(),array('settings','admin','help'))!==false){
+ if(array_search(OC_APP::getCurrentApp(),array('settings','admin','help'))!==false) {
$this->assign('bodyid','body-settings', false);
}else{
$this->assign('bodyid','body-user', false);
@@ -36,7 +36,7 @@ class OC_TemplateLayout extends OC_Template {
}
$apps_paths = array();
- foreach(OC_App::getEnabledApps() as $app){
+ foreach(OC_App::getEnabledApps() as $app) {
$apps_paths[$app] = OC_App::getAppWebPath($app);
}
$this->assign( 'apps_paths', str_replace('\\/', '/',json_encode($apps_paths)),false ); // Ugly unescape slashes waiting for better solution
@@ -96,7 +96,7 @@ class OC_TemplateLayout extends OC_Template {
return false;
}
- static public function findStylesheetFiles($styles){
+ static public function findStylesheetFiles($styles) {
// Read the selected theme from the config file
$theme=OC_Config::getValue( 'theme' );
@@ -104,7 +104,7 @@ class OC_TemplateLayout extends OC_Template {
$fext = self::getFormFactorExtension();
$files = array();
- foreach($styles as $style){
+ foreach($styles as $style) {
// is it in 3rdparty?
if(self::appendIfExist($files, OC::$THIRDPARTYROOT, OC::$THIRDPARTYWEBROOT, $style.'.css')) {
@@ -132,7 +132,7 @@ class OC_TemplateLayout extends OC_Template {
}
// Add the theme css files. you can override the default values here
if(!empty($theme)) {
- foreach($styles as $style){
+ foreach($styles as $style) {
if(self::appendIfExist($files, OC::$SERVERROOT, OC::$WEBROOT, "themes/$theme/apps/$style$fext.css" )) {
}elseif(self::appendIfExist($files, OC::$SERVERROOT, OC::$WEBROOT, "themes/$theme/apps/$style.css" )) {
@@ -147,7 +147,7 @@ class OC_TemplateLayout extends OC_Template {
return $files;
}
- static public function findJavascriptFiles($scripts){
+ static public function findJavascriptFiles($scripts) {
// Read the selected theme from the config file
$theme=OC_Config::getValue( 'theme' );
@@ -155,7 +155,7 @@ class OC_TemplateLayout extends OC_Template {
$fext = self::getFormFactorExtension();
$files = array();
- foreach($scripts as $script){
+ foreach($scripts as $script) {
// Is it in 3rd party?
if(self::appendIfExist($files, OC::$THIRDPARTYROOT, OC::$THIRDPARTYWEBROOT, $script.'.js')) {