aboutsummaryrefslogtreecommitdiffstats
path: root/lib/app.php
diff options
context:
space:
mode:
authorJakob Sack <kde@jakobsack.de>2011-03-03 23:08:11 +0100
committerJakob Sack <kde@jakobsack.de>2011-03-03 23:08:11 +0100
commitf7f957abb92e5ce359d7eafa136406822fee0a51 (patch)
tree3e101065ee9f29335ffbc8ab48253237eb6c441d /lib/app.php
parentae5dc3efdffef75c48e5ef7cac6b40cd5720442b (diff)
downloadnextcloud-server-f7f957abb92e5ce359d7eafa136406822fee0a51.tar.gz
nextcloud-server-f7f957abb92e5ce359d7eafa136406822fee0a51.zip
Base for a more flexible navigation
Diffstat (limited to 'lib/app.php')
-rw-r--r--lib/app.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/app.php b/lib/app.php
index 181af8a4faf..0bef7381262 100644
--- a/lib/app.php
+++ b/lib/app.php
@@ -6,13 +6,15 @@ class OC_APP{
/**
*
*/
- public static function init(){
+ public static function loadApps(){
+ global $SERVERROOT;
+
// Get all appinfo
$dir = opendir( $SERVERROOT );
while( false !== ( $filename = readdir( $dir ))){
if( substr( $filename, 0, 1 ) != '.' ){
- if( file_exists( "$SERVERROOT/$filename/appinfo.php" )){
- oc_require( "$filename/appinfo.php" );
+ if( file_exists( "$SERVERROOT/$filename/appinfo/app.php" )){
+ oc_require( "$filename/appinfo/app.php" );
}
}
}
@@ -32,8 +34,8 @@ class OC_APP{
/**
*
*/
- public static function list(){
- return OC_APP::$apps[];
+ public static function getApps(){
+ return OC_APP::$apps;
}
}