summaryrefslogtreecommitdiffstats
path: root/lib/template.php
diff options
context:
space:
mode:
authorBrice Maron <brice@bmaron.net>2012-06-06 19:54:57 +0000
committerBrice Maron <brice@bmaron.net>2012-06-06 20:24:16 +0000
commit5c2b2fc8425e7fa52945b53058ac67f67d228409 (patch)
treed7f6e5462d40e46920f81cd86e28b12cb671abc5 /lib/template.php
parent6a812644e4d0f6eed8dca4e20c6f7135d881012a (diff)
downloadnextcloud-server-5c2b2fc8425e7fa52945b53058ac67f67d228409.tar.gz
nextcloud-server-5c2b2fc8425e7fa52945b53058ac67f67d228409.zip
Change app path logic in templates
Diffstat (limited to 'lib/template.php')
-rw-r--r--lib/template.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/template.php b/lib/template.php
index fdd608fdc7a..6fe07102034 100644
--- a/lib/template.php
+++ b/lib/template.php
@@ -383,6 +383,11 @@ class OC_Template{
}else{
$page = new OC_Template( "core", "layout.guest" );
}
+ $apps_paths = array();
+ foreach(OC_App::getEnabledApps() as $app){
+ $apps_paths[$app] = OC_App::getAppWebPath($app);
+ }
+ $page->assign( 'apps_paths', str_replace('\\/', '/',json_encode($apps_paths)) ); // Ugly unescape slashes waiting for better solution
// Read the selected theme from the config file
$theme=OC_Config::getValue( "theme" );