diff options
author | Michael Gapczynski <GapczynskiM@gmail.com> | 2011-07-30 19:40:19 -0400 |
---|---|---|
committer | Michael Gapczynski <GapczynskiM@gmail.com> | 2011-07-30 19:40:19 -0400 |
commit | 11d162751381963e0c8a86cf15c811cc99003654 (patch) | |
tree | 276b5b1e67a66491ef553346087b2959f35b3bc7 /lib/app.php | |
parent | d13ba0ee2d93080ba56776442b9d39a53e2b6321 (diff) | |
parent | d6faa89ed720da7319923cba33a83d0210216d57 (diff) | |
download | nextcloud-server-11d162751381963e0c8a86cf15c811cc99003654.tar.gz nextcloud-server-11d162751381963e0c8a86cf15c811cc99003654.zip |
Merge branch 'master' into sharing. Integrate with changes in master, rename classes
Conflicts:
lib/base.php
Diffstat (limited to 'lib/app.php')
-rw-r--r-- | lib/app.php | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/lib/app.php b/lib/app.php index b6c2512e79a..9e81ed8184e 100644 --- a/lib/app.php +++ b/lib/app.php @@ -26,7 +26,7 @@ * owncloud ecosystem. Furthermore, this class is responsible for installing, * upgrading and removing apps. */ -class OC_APP{ +class OC_App{ static private $init = false; static private $apps = array(); static private $activeapp = ''; @@ -57,7 +57,7 @@ class OC_APP{ } // The rest comes here - $apps = OC_APPCONFIG::getApps(); + $apps = OC_Appconfig::getApps(); foreach( $apps as $app ){ if( self::isEnabled( $app )){ if(is_file($SERVERROOT.'/apps/'.$app.'/appinfo/app.php')){ @@ -80,7 +80,7 @@ class OC_APP{ * This function checks whether or not an app is enabled. */ public static function isEnabled( $app ){ - if( 'yes' == OC_APPCONFIG::getValue( $app, 'enabled' )){ + if( 'yes' == OC_Appconfig::getValue( $app, 'enabled' )){ return true; } @@ -95,7 +95,7 @@ class OC_APP{ * This function set an app as enabled in appconfig. */ public static function enable( $app ){ - OC_APPCONFIG::setValue( $app, 'enabled', 'yes' ); + OC_Appconfig::setValue( $app, 'enabled', 'yes' ); } /** @@ -106,7 +106,7 @@ class OC_APP{ * This function set an app as enabled in appconfig. */ public static function disable( $app ){ - OC_APPCONFIG::setValue( $app, 'enabled', 'no' ); + OC_Appconfig::setValue( $app, 'enabled', 'no' ); } /** @@ -126,7 +126,7 @@ class OC_APP{ * */ public static function register( $data ){ - OC_APP::$apps[] = $data; + OC_App::$apps[] = $data; } /** @@ -137,7 +137,7 @@ class OC_APP{ */ public static function get(){ // TODO: write function - return OC_APP::$apps; + return OC_App::$apps; } /** @@ -162,7 +162,7 @@ class OC_APP{ if(!isset($data['icon'])){ $data['icon']=''; } - OC_APP::$navigation[] = $data; + OC_App::$navigation[] = $data; return true; } @@ -241,7 +241,7 @@ class OC_APP{ */ public static function addAdminPage( $data = array()){ // TODO: write function - OC_APP::$adminpages[] = $data; + OC_App::$adminpages[] = $data; return true; } @@ -266,7 +266,7 @@ class OC_APP{ */ public static function addSettingsPage( $data = array()){ // TODO: write function - OC_APP::$settingspages[] = $data; + OC_App::$settingspages[] = $data; return true; } @@ -408,4 +408,3 @@ class OC_APP{ } } } -?>
\ No newline at end of file |