summaryrefslogtreecommitdiff
path: root/core/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'core/controllers')
-rw-r--r--core/controllers/quick.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/core/controllers/quick.php b/core/controllers/quick.php
index 7267283c..3f3c1f0c 100644
--- a/core/controllers/quick.php
+++ b/core/controllers/quick.php
@@ -18,14 +18,14 @@
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
*/
class Quick_Controller extends Controller {
- public function edit($id) {
+ public function pane($id) {
$item = ORM::factory("item", $id);
if (!$item->loaded) {
return "";
}
if ($item->type == "photo") {
- $view = new View("quick_edit.html");
+ $view = new View("quick_pane.html");
$view->item = $item;
print $view;
}
@@ -73,4 +73,11 @@ class Quick_Controller extends Controller {
"width" => $item->thumb_width,
"height" => $item->thumb_height));
}
+
+ public function form_edit($id) {
+ $item = ORM::factory("item", $id);
+ access::required("edit", $item);
+ $form = photo::get_edit_form($item);
+ print $form;
+ }
}