summaryrefslogtreecommitdiffstats
path: root/lib/template.php
diff options
context:
space:
mode:
authorJakob Sack <kde@jakobsack.de>2011-04-16 09:46:58 +0200
committerJakob Sack <kde@jakobsack.de>2011-04-16 09:46:58 +0200
commitf36f453dd293a847978186ad7c920b14c4914373 (patch)
tree731a102697b21aa163b634d0d01be245dfcc5b64 /lib/template.php
parentf1015c88faf8ce418c5e0f983756d71403044210 (diff)
downloadnextcloud-server-f36f453dd293a847978186ad7c920b14c4914373.tar.gz
nextcloud-server-f36f453dd293a847978186ad7c920b14c4914373.zip
apps are now stored in /apps
Diffstat (limited to 'lib/template.php')
-rw-r--r--lib/template.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/template.php b/lib/template.php
index 12a32c1f052..80bb4317d92 100644
--- a/lib/template.php
+++ b/lib/template.php
@@ -96,7 +96,13 @@ class OC_TEMPLATE{
// Get the right template folder
$template = "$SERVERROOT/templates/";
if( $app != "core" && $app != "" ){
- $template = "$SERVERROOT/$app/templates/";
+ // Check if the app is in the app folder
+ if( "$SERVERROOT/apps/$app/templates/" ){
+ $template = "$SERVERROOT/apps/$app/templates/";
+ }
+ else{
+ $template = "$SERVERROOT/$app/templates/";
+ }
}
// Templates have the ending .php