From 54edb62777fe751e512eceb28ac348cab0931ae0 Mon Sep 17 00:00:00 2001 From: Harvie Date: Wed, 29 Dec 2010 00:43:49 +0100 Subject: [PATCH] UglyHack to get delete event working - should use delete.inc instead --- wwwroot/inc/eventz.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wwwroot/inc/eventz.inc b/wwwroot/inc/eventz.inc index 9312f20..1a240d3 100644 --- a/wwwroot/inc/eventz.inc +++ b/wwwroot/inc/eventz.inc @@ -6,6 +6,12 @@ if(preg_match('/36$/', $event) || preg_match('/36$/', $_POST['event'])) { $_POST['new_parent'] = base_convert($_POST['new_parent'], 36, 10); //set_parent36 } +if($event=='delete' || $_POST['event']=='delete') { //XXX TODO FIXME UglyFuckingHack - should go to delete.inc (but something is broken) + $event='set_parent'; + $_POST['event']=$event; + $_POST['new_parent']=123456; //XXX TODO FIXME Hardcoded +} + //do not make a permission check if an event was executed before if ($_SESSION['eventz'][$event]) { include_once(INCLUDE_DIR."eventz/$event.inc"); -- 2.30.2