summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-03-04 06:25:04 +0000
committerBharat Mediratta <bharat@menalto.com>2009-03-04 06:25:04 +0000
commit69cb19aad246462d3118773a213d375a3b0c6559 (patch)
treec26aa1559f8f36b5ae6e12d0e12ac2c99ef1a80f
parent3600e732829746e28262c2c8e095702e645d1571 (diff)
Delete test(), it should never have been checked in.
-rw-r--r--core/controllers/scaffold.php19
1 files changed, 1 insertions, 18 deletions
diff --git a/core/controllers/scaffold.php b/core/controllers/scaffold.php
index 8f4b491f..bd4c1f22 100644
--- a/core/controllers/scaffold.php
+++ b/core/controllers/scaffold.php
@@ -20,23 +20,6 @@
class Scaffold_Controller extends Template_Controller {
public $template = "scaffold.html";
- function test() {
- $this->auto_render = false;
- $source = ORM::factory("item", 3);
- $target = ORM::factory("item", 4);
-
- printf("<pre>%s</pre>",print_r($source->as_array(),1));flush();
- printf("<pre>%s</pre>",print_r($target->as_array(),1));flush();
-
- // If the target has no cover item, make this it.
- if ($target->album_cover_item_id == null) {
- $target->album_cover_item_id =
- $source->is_album() ? $source->album_cover_item_id : $source->id;
- $target->save();
- }
- graphics::generate($target);
- }
-
function index() {
try {
$session = Session::instance();
@@ -219,7 +202,7 @@ class Scaffold_Controller extends Template_Controller {
}
batch::operation("add", $parent);
-
+
cookie::set("add_photos_path", $path);
$photo_count = 0;
foreach (glob("$path/*.[Jj][Pp][Gg]") as $file) {