diff options
author | Jakob Sack <kde@jakobsack.de> | 2011-04-16 09:46:58 +0200 |
---|---|---|
committer | Jakob Sack <kde@jakobsack.de> | 2011-04-16 09:46:58 +0200 |
commit | f36f453dd293a847978186ad7c920b14c4914373 (patch) | |
tree | 731a102697b21aa163b634d0d01be245dfcc5b64 /lib/template.php | |
parent | f1015c88faf8ce418c5e0f983756d71403044210 (diff) | |
download | nextcloud-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.php | 8 |
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 |