aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorJakob Sack <kde@jakobsack.de>2011-03-03 21:55:32 +0100
committerJakob Sack <kde@jakobsack.de>2011-03-03 21:55:32 +0100
commitae5dc3efdffef75c48e5ef7cac6b40cd5720442b (patch)
tree53a0ecc40c827ae255e6f7c95a37c9a52b6d4ab8 /admin
parent94b405b64fdd1427873e49888fb0527640a10eb6 (diff)
downloadnextcloud-server-ae5dc3efdffef75c48e5ef7cac6b40cd5720442b.tar.gz
nextcloud-server-ae5dc3efdffef75c48e5ef7cac6b40cd5720442b.zip
New classes for owncloud: OC_APP for applications, OC_PREFERENCES for user preferences
Diffstat (limited to 'admin')
-rw-r--r--admin/appinfo/app.php (renamed from admin/appinfo.php)2
-rw-r--r--admin/index.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/admin/appinfo.php b/admin/appinfo/app.php
index 0b2e4dbf85d..befe8e678f0 100644
--- a/admin/appinfo.php
+++ b/admin/appinfo/app.php
@@ -1,6 +1,6 @@
<?php
-OC_UTIL::addApplication( array( "id" => "admin", "name" => "Administration" ));
+OC_APP::register( array( "id" => "admin", "name" => "Administration" ));
if( OC_USER::ingroup( $_SESSION['username'], 'admin' ))
{
OC_UTIL::addNavigationEntry( array( "app" => "admin", "file" => "index.php", "name" => "Administration" ));
diff --git a/admin/index.php b/admin/index.php
index cfcb70d056b..96fa2007244 100644
--- a/admin/index.php
+++ b/admin/index.php
@@ -30,7 +30,7 @@ if( !OC_USER::isLoggedIn() || !OC_USER::ingroup( $_SESSION['username'], 'admin'
$adminpages = array();
-foreach( OC_UTIL::$adminpages as $i ){
+foreach( OC_APP::list() as $i ){
// Do some more work here soon
$adminpages[] = $i;
}