GIT.Harvie.CZ
/
mirrors
/
Kyberia-bloodline.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
14f5632
)
UglyHack to get delete event working - should use delete.inc instead
author
Harvie
<tomas@mudrunka.cz>
Tue, 28 Dec 2010 23:43:49 +0000
(
00:43
+0100)
committer
Harvie
<tomas@mudrunka.cz>
Tue, 28 Dec 2010 23:43:49 +0000
(
00:43
+0100)
wwwroot/inc/eventz.inc
patch
|
blob
|
blame
|
history
diff --git
a/wwwroot/inc/eventz.inc
b/wwwroot/inc/eventz.inc
index 9312f205187819f0c6a28c1af25350791c07b3d5..1a240d37501257d543d79f77be614a075e849ef6 100644
(file)
--- 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
}
$_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");
//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.156916 seconds
and
4
git commands to generate.