Index: branches/RC/core/kernel/db/db_event_handler.php =================================================================== diff -u -N -r10621 -r10653 --- branches/RC/core/kernel/db/db_event_handler.php (.../db_event_handler.php) (revision 10621) +++ branches/RC/core/kernel/db/db_event_handler.php (.../db_event_handler.php) (revision 10653) @@ -152,12 +152,13 @@ 'OnGoBack' => Array('self' => true, 'subitem' => true), // it checks permission itself since flash uploader does not send cookies - 'OnUploadFile' => Array('self'=>true, 'subitem'=>true), + 'OnUploadFile' => Array ('self' => true, 'subitem' => true), + 'OnDeleteFile' => Array ('self' => true, 'subitem' => true), - 'OnViewFile' => Array('self'=>true, 'subitem'=>true), - 'OnSaveWidths' => Array('self'=>true, 'subitem'=>true), + 'OnViewFile' => Array ('self' => true, 'subitem' => true), + 'OnSaveWidths' => Array ('self' => true, 'subitem' => true), - 'OnValidateMInputFields' => Array('self'=>'view'), + 'OnValidateMInputFields' => Array ('self' => 'view'), ); $this->permMapping = array_merge($this->permMapping, $permissions); } @@ -2217,13 +2218,13 @@ return ; } - $object =& $event->getObject( Array ('skip_autoload' => true)) ; - $options = $object->GetFieldOptions($this->Application->GetVar('field')); + $object =& $event->getObject( Array ('skip_autoload' => true) ); + $options = $object->GetFieldOptions( $this->Application->GetVar('field') ); - $var_name = $event->getPrefixSpecial().'_file_pending_actions'.$this->Application->GetVar('m_wid'); + $var_name = $event->getPrefixSpecial() . '_file_pending_actions' . $this->Application->GetVar('m_wid'); $schedule = $this->Application->RecallVar($var_name); - $schedule = $schedule ? unserialize($schedule) : array(); - $schedule[] = array('action'=>'delete', 'file'=>$path = FULL_PATH.$options['upload_dir'].$this->Application->GetVar('file')); + $schedule = $schedule ? unserialize($schedule) : Array (); + $schedule[] = Array ('action' => 'delete', 'file' => $path = FULL_PATH . $options['upload_dir'] . $this->Application->GetVar('file')); $this->Application->StoreVar($var_name, serialize($schedule)); $this->Application->Session->SaveData(); }