summaryrefslogtreecommitdiffstats
path: root/lib/app.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/app.php
parentf1015c88faf8ce418c5e0f983756d71403044210 (diff)
downloadnextcloud-server-f36f453dd293a847978186ad7c920b14c4914373.tar.gz
nextcloud-server-f36f453dd293a847978186ad7c920b14c4914373.zip
apps are now stored in /apps
Diffstat (limited to 'lib/app.php')
-rw-r--r--lib/app.php13
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/app.php b/lib/app.php
index 3827afb5d15..4a7c2b3a963 100644
--- a/lib/app.php
+++ b/lib/app.php
@@ -49,12 +49,17 @@ class OC_APP{
return true;
}
- // Get all appinfo
- $dir = opendir( $SERVERROOT );
+ // Our very own core apps are hardcoded
+ foreach( array( "admin", "files", "log", "settings" ) as $app ){
+ oc_require( "$app/appinfo/app.php" );
+ }
+
+ // The rest comes here
+ $dir = opendir( "$SERVERROOT/apps" );
while( false !== ( $filename = readdir( $dir ))){
if( substr( $filename, 0, 1 ) != '.' ){
- if( file_exists( "$SERVERROOT/$filename/appinfo/app.php" )){
- oc_require( "$filename/appinfo/app.php" );
+ if( file_exists( "$SERVERROOT/apps/$filename/appinfo/app.php" )){
+ oc_require( "apps/$filename/appinfo/app.php" );
}
}
}