diff options
author | Alessandro Cosentino <cosenal@gmail.com> | 2012-09-13 11:17:02 -0400 |
---|---|---|
committer | Alessandro Cosentino <cosenal@gmail.com> | 2012-09-13 11:17:02 -0400 |
commit | 008e565bed860e9f61dd9aaeefca74e003b42f8a (patch) | |
tree | 1f2a20c58c8e61c058a8859bcd07c9f665ac603f /ajax | |
parent | 5c164090799ff96073915a9f21cf83038f828048 (diff) |
small refactoring on the backend
Diffstat (limited to 'ajax')
-rw-r--r-- | ajax/setallitemsread.php | 2 | ||||
-rw-r--r-- | ajax/setitemstatus.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ajax/setallitemsread.php b/ajax/setallitemsread.php index ba084299d..1a3038550 100644 --- a/ajax/setallitemsread.php +++ b/ajax/setallitemsread.php @@ -41,7 +41,7 @@ switch ($feedId) { // necessary $success = false; if($mostRecentItemId !== 0) { - $mostRecentItem = $itemMapper->find($mostRecentItemId); + $mostRecentItem = $itemMapper->findById($mostRecentItemId); } foreach($items as $item) { // FIXME: this should compare the modified date diff --git a/ajax/setitemstatus.php b/ajax/setitemstatus.php index 2f99804e9..14ce8ad91 100644 --- a/ajax/setitemstatus.php +++ b/ajax/setitemstatus.php @@ -19,7 +19,7 @@ $itemId = $_POST['itemId']; $status = $_POST['status']; $itemMapper = new OCA\News\ItemMapper(); -$item = $itemMapper->find($itemId); +$item = $itemMapper->findById($itemId); switch ($status) { case 'read': |