projects
/
brisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix hard cabled stream_fini response when some error occurs
[brisk.git]
/
web
/
Obj
/
transports.phh
diff --git
a/web/Obj/transports.phh
b/web/Obj/transports.phh
index
e0b11ee
..
2d9714e
100644
(file)
--- a/
web/Obj/transports.phh
+++ b/
web/Obj/transports.phh
@@
-90,6
+90,7
@@
class Transport_xhr {
static function fini($init_string, $base, $blockerr)
{
static function fini($init_string, $base, $blockerr)
{
+ return (sprintf('@BEGIN@ %s window.onbeforeunload = null; window.onunload = null; document.location.assign("%sindex.php"); @END@', ($blockerr ? 'xstm.stop(); ' : ''), $base));
return ("");
}
return ("");
}
@@
-187,5
+188,14
@@
class Transport {
return new Transport_iframe();
}
}
return new Transport_iframe();
}
}
+ static function gettype($transp)
+ {
+ if ($transp == 'xhr' || $transp == 'htmlfile') {
+ return "Transport_".$transp;
+ }
+ else {
+ return 'Transport_iframe';
+ }
+ }
}
?>
\ No newline at end of file
}
?>
\ No newline at end of file