UglyHack to get delete event working - should use delete.inc instead
authorHarvie <tomas@mudrunka.cz>
Tue, 28 Dec 2010 23:43:49 +0000 (00:43 +0100)
committerHarvie <tomas@mudrunka.cz>
Tue, 28 Dec 2010 23:43:49 +0000 (00:43 +0100)
wwwroot/inc/eventz.inc

index 9312f205187819f0c6a28c1af25350791c07b3d5..1a240d37501257d543d79f77be614a075e849ef6 100644 (file)
@@ -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");
This page took 0.111 seconds and 4 git commands to generate.