diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2008-12-06 21:14:36 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2008-12-06 21:14:36 +0000 |
commit | fb6e22e1457ce4d1503c739d7354d51fe3af4e94 (patch) | |
tree | 4694ea5d9df391cb5b74fc525b3d0d3386316440 /core/controllers/welcome.php | |
parent | 64c380a60d540bd7428282fe10591e8ec19ba7fd (diff) |
Implemented photo::_get_photo_add(). You need to create the var/uploads directory and make it writable by the server. The location of the temporary upload directory is specified in config/upload.php
Diffstat (limited to 'core/controllers/welcome.php')
-rw-r--r-- | core/controllers/welcome.php | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/core/controllers/welcome.php b/core/controllers/welcome.php index 7f1070ba..e61ae674 100644 --- a/core/controllers/welcome.php +++ b/core/controllers/welcome.php @@ -507,16 +507,8 @@ class Welcome_Controller extends Template_Controller { $this->auto_render = false; } - public function _get_add_photo_html() { - return ' - <fieldset> - <legend>Photos</legend> - <form method="post" action="' . url::site("albums/1") . '" enctype="multipart/form-data"> - <input type="submit" value="upload"/> - <input id="photo_upload" name="file[]" type="file"/> - <input type="hidden" name="type" value="photo"/> - </form> - </fieldset> - '; + public function _get_add_photo_html($parent_id=1) { + $parent = ORM::factory("item", $parent_id); + return photo::get_add_form($parent); } } |