From 5c2b2fc8425e7fa52945b53058ac67f67d228409 Mon Sep 17 00:00:00 2001 From: Brice Maron Date: Wed, 6 Jun 2012 19:54:57 +0000 Subject: Change app path logic in templates --- lib/template.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/template.php') 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" ); -- cgit v1.2.3