summaryrefslogtreecommitdiffstats
path: root/ajax/changefoldername.php
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-01-27 04:15:53 +0100
committerBernhard Posselt <nukeawhale@gmail.com>2013-01-27 04:15:53 +0100
commitae7393db3d99a7ac223ae917129cccd9f49888e3 (patch)
tree7f54b72b0d01c38afd1378365a67e4f192922423 /ajax/changefoldername.php
parent483784caa38bd6131405ac474347a215584e30a5 (diff)
merged the angularjs branch
Diffstat (limited to 'ajax/changefoldername.php')
-rw-r--r--ajax/changefoldername.php35
1 files changed, 0 insertions, 35 deletions
diff --git a/ajax/changefoldername.php b/ajax/changefoldername.php
deleted file mode 100644
index 9c829bccb..000000000
--- a/ajax/changefoldername.php
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-/**
-* ownCloud - News app
-*
-* @author Bernhard Posselt
-* Copyright (c) 2012 - Bernhard Posselt <nukeawhale@gmail.com>
-*
-* This file is licensed under the Affero General Public License version 3 or later.
-* See the COPYING-README file
-*
-*/
-
-// Check if we are a user
-OCP\JSON::checkLoggedIn();
-OCP\JSON::checkAppEnabled('news');
-OCP\JSON::callCheck();
-session_write_close();
-
-$folderId = (int)$_POST['folderId'];
-$folderName = $_POST['folderName'];
-
-$folderMapper = new OCA\News\FolderMapper();
-$folder = $folderMapper->find($folderId);
-$folder->setName($folderName);
-$success = $folderMapper->update($folder);
-
-$l = OC_L10N::get('news');
-
-if(!$success) {
- OCP\JSON::error(array('data' => array('message' => $l->t('Error changing name of folder ' . $folderId . ' to ' . $folderName))));
- OCP\Util::writeLog('news','ajax/setallitemsread.php: Error changing name of folder ' . $folderId . ' to ' . $folderName, OCP\Util::ERROR);
- exit();
-}
-
-OCP\JSON::success(); \ No newline at end of file