Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/apps.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Hülsmann <fh@cbix.de>2012-06-21 01:12:00 +0400
committerFlorian Hülsmann <fh@cbix.de>2012-06-21 01:12:00 +0400
commit9d5e50c5b5a86ffe15a9d636708969f95b516552 (patch)
treefc45ccfe0f6c12c0024762bdbcd1557f4c7803c6 /apptemplate
parent41819edbb0ed4cb68a6ee54557b316fff091c815 (diff)
apptemplate compatible with OC4
Diffstat (limited to 'apptemplate')
-rw-r--r--apptemplate/settings.php10
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();
-
-?>