diff options
Diffstat (limited to 'ajax')
-rw-r--r-- | ajax/deletefeed.php | 2 | ||||
-rw-r--r-- | ajax/deletefolder.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ajax/deletefeed.php b/ajax/deletefeed.php index c9c9056ca..d9ef6f85d 100644 --- a/ajax/deletefeed.php +++ b/ajax/deletefeed.php @@ -19,7 +19,7 @@ $userid = OCP\USER::getUser(); $feedid = $_POST['feedid']; -$feedmapper = new OCA\News\FeedMapper(); +$feedmapper = new OCA\News\FeedMapper($userid); $success = $feedmapper->deleteById($feedid); $l = OC_L10N::get('news'); diff --git a/ajax/deletefolder.php b/ajax/deletefolder.php index a6950ed40..daf9a8397 100644 --- a/ajax/deletefolder.php +++ b/ajax/deletefolder.php @@ -21,7 +21,7 @@ $folderid = trim($_POST['folderid']); $shownfeedid = trim($_POST['shownfeedid']); $part_items = false; -$foldermapper = new OCA\News\FolderMapper(); +$foldermapper = new OCA\News\FolderMapper($userid); if(!$foldermapper->deleteById($folderid)) { OCP\JSON::error(array('data' => array('message' => $l->t('Error removing folder.')))); |