Merge branch '2.0' of github.com:s9y/Serendipity into 2.0
This commit is contained in:
@ -34,6 +34,25 @@ function serendipity_plugin_api_frontend_header($event_name, &$bag, &$eventData,
|
|||||||
<script>jQuery.noConflict();</script>
|
<script>jQuery.noConflict();</script>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
// add a global available (index.tpl; admin/index.tpl; preview_iframe.tpl) redirect error string function used by errorToExceptionHandler()
|
||||||
|
// hardened by admin only - better have that here, to be reachable everywhere
|
||||||
|
if ($serendipity['production'] === true) {
|
||||||
|
if( $serendipity['serendipityUserlevel'] >= USERLEVEL_ADMIN ) {
|
||||||
|
?>
|
||||||
|
<script type="text/javascript">
|
||||||
|
function create(htmlStr) {
|
||||||
|
var frag = document.createDocumentFragment(),
|
||||||
|
temp = document.createElement("div");
|
||||||
|
temp.innerHTML = htmlStr;
|
||||||
|
while (temp.firstChild) {
|
||||||
|
frag.appendChild(temp.firstChild);
|
||||||
|
}
|
||||||
|
return frag;
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add jquery to all backend templates
|
// Add jquery to all backend templates
|
||||||
|
Reference in New Issue
Block a user