diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-05-02 20:34:02 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-05-02 20:34:02 +0000 |
commit | b4c9a970502c491840d640857ee1617e86207ffd (patch) | |
tree | 7d017393bf2fdb4b0fcf20a2f274f6c0ac8fff18 /core/controllers | |
parent | 0fd82598b50fb5d93816689525f3a1bd7b4e52ab (diff) |
Create item helper and move move_item(), remove_album_cover() and
make_album_cover() functions into it.
Diffstat (limited to 'core/controllers')
-rw-r--r-- | core/controllers/move.php | 2 | ||||
-rw-r--r-- | core/controllers/quick.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/controllers/move.php b/core/controllers/move.php index 19e4bfe2..94e9df7c 100644 --- a/core/controllers/move.php +++ b/core/controllers/move.php @@ -33,7 +33,7 @@ class Move_Controller extends Controller { $source = ORM::factory("item", $source_id); $target = ORM::factory("item", $this->input->post("target_id")); - core::move_item($source, $target); + item::move($source, $target); print json_encode( array("result" => "success", diff --git a/core/controllers/quick.php b/core/controllers/quick.php index 0f1a3244..9382786e 100644 --- a/core/controllers/quick.php +++ b/core/controllers/quick.php @@ -82,7 +82,7 @@ class Quick_Controller extends Controller { public function make_album_cover($id) { access::verify_csrf(); - core::make_album_cover(ORM::factory("item", $id)); + item::make_album_cover(ORM::factory("item", $id)); print json_encode(array("result" => "success")); } |