diff options
author | Florian Hülsmann <fh@cbix.de> | 2012-06-21 01:12:00 +0400 |
---|---|---|
committer | Florian Hülsmann <fh@cbix.de> | 2012-06-21 01:12:00 +0400 |
commit | 9d5e50c5b5a86ffe15a9d636708969f95b516552 (patch) | |
tree | fc45ccfe0f6c12c0024762bdbcd1557f4c7803c6 /apptemplate | |
parent | 41819edbb0ed4cb68a6ee54557b316fff091c815 (diff) |
apptemplate compatible with OC4
Diffstat (limited to 'apptemplate')
-rw-r--r-- | apptemplate/settings.php | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/apptemplate/settings.php b/apptemplate/settings.php index 6dab94c7d..82ab2af92 100644 --- a/apptemplate/settings.php +++ b/apptemplate/settings.php @@ -1,13 +1,11 @@ <?php -OC_Util::checkAdminUser(); +OCP\User::checkAdminUser(); -OC_Util::addScript( "apptemplate", "admin" ); +OCP\Util::addScript( "apptemplate", "admin" ); -$tmpl = new OC_Template( 'apptemplate', 'settings'); +$tmpl = new OCP\Template( 'apptemplate', 'settings'); -$tmpl->assign('url', htmlentities(OC_Config::getValue( "somesetting", '' ))); +$tmpl->assign('url',OCP\Config::getSystemValue( "somesetting", '' )); return $tmpl->fetchPage(); - -?> |