From: Harvie Date: Tue, 28 Dec 2010 23:43:49 +0000 (+0100) Subject: UglyHack to get delete event working - should use delete.inc instead X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=54edb62777fe751e512eceb28ac348cab0931ae0;p=mirrors%2FKyberia-bloodline.git UglyHack to get delete event working - should use delete.inc instead --- 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");