Added Tagging, Moving with Replace, Optimised Delete
This commit is contained in:
@@ -33,8 +33,7 @@ class Controller_Photo extends Controller_TemplateDefault {
|
||||
$output .= sprintf('Removing %s (%s)',$po->id,$po->file_path());
|
||||
|
||||
// Delete it
|
||||
if (unlink($po->file_path()))
|
||||
$po->delete();
|
||||
$po->delete();
|
||||
}
|
||||
|
||||
$p = ORM::factory('Photo');
|
||||
@@ -167,6 +166,7 @@ class Controller_Photo extends Controller_TemplateDefault {
|
||||
foreach (array(
|
||||
'ID'=>array('key'=>'id','value'=>HTML::anchor('/photo/details/%VALUE%','%VALUE%')),
|
||||
'Thumbnail'=>array('key'=>'id','value'=>HTML::anchor('/photo/view/%VALUE%',HTML::image('photo/thumbnail/%VALUE%'))),
|
||||
'ThumbSig'=>array('key'=>'thumbnail_sig()'),
|
||||
'Signature'=>array('key'=>'signature'),
|
||||
'Date Taken'=>array('key'=>'date_taken()'),
|
||||
'File Modified'=>array('key'=>'date_file("m",TRUE)'),
|
||||
|
Reference in New Issue
Block a user