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
path: root/tattoo
diff options
context:
space:
mode:
authorLuc Didry <luc@didry.org>2013-03-24 13:59:40 +0400
committerLuc Didry <luc@didry.org>2013-03-26 01:23:46 +0400
commit2a8a82a2c0ce440b5f1324f95cc23c2eeaf130f1 (patch)
tree75b15845e05c5c5bc7b74e466346048bd202ee0a /tattoo
parent87b36b84eba927b40efdd617863064f1914fbd06 (diff)
Use OCP namespace
Diffstat (limited to 'tattoo')
-rw-r--r--tattoo/ajax/bg.php4
-rw-r--r--tattoo/settings.php10
2 files changed, 7 insertions, 7 deletions
diff --git a/tattoo/ajax/bg.php b/tattoo/ajax/bg.php
index 1a504620e..e755991f4 100644
--- a/tattoo/ajax/bg.php
+++ b/tattoo/ajax/bg.php
@@ -4,6 +4,6 @@
require_once '../../../lib/base.php';
// Check if we are a user
-OC_JSON::checkLoggedIn();
+OCP\JSON::checkLoggedIn();
-OC_JSON::success(array('data' => OC_Preferences::getValue(OC_User::getUser(),'tattoo','wallpaper','none'))); \ No newline at end of file
+OCP\JSON::success(array('data' => OCP\Config::getUserValue(OCP\User::getUser(),'tattoo','wallpaper','none')));
diff --git a/tattoo/settings.php b/tattoo/settings.php
index f83dfb2a3..2cbd41809 100644
--- a/tattoo/settings.php
+++ b/tattoo/settings.php
@@ -1,15 +1,15 @@
<?php
-OC_Util::addStyle('tattoo', 'settings');
+OCP\Util::addStyle('tattoo', 'settings');
// die($_POST['tattooWallpaper']);
if(isset($_POST['tattooSetWallpaper']) && isset($_POST['tattooWallpaper'])) {
- OC_Preferences::setValue(OC_User::getUser(),'tattoo','wallpaper',$_POST['tattooWallpaper']);
- OC_Preferences::setValue(OC_User::getUser(),'tattoo','lastModified',gmdate('D, d M Y H:i:s') . ' GMT');
+ OCP\Config::setUserValue(OCP\User::getUser(),'tattoo','wallpaper',$_POST['tattooWallpaper']);
+ OCP\Config::setUserValue(OCP\User::getUser(),'tattoo','lastModified',gmdate('D, d M Y H:i:s') . ' GMT');
}
-$wallpaper=OC_Preferences::getValue(OC_User::getUser(),'tattoo','wallpaper','none');
+$wallpaper=OCP\Config::getUserValue(OCP\User::getUser(),'tattoo','wallpaper','none');
-$tmpl = new OC_Template( 'tattoo', 'settings');
+$tmpl = new OCP\Template( 'tattoo', 'settings');
$tmpl->assign('tattooSelectedWallpaper',$wallpaper);
return $tmpl->fetchPage();