mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
issue 2135 modified str_replace params to array()
git-svn-id: http://xe-core.googlecode.com/svn/branches/luminous@11178 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
5da785312c
commit
d3284d2e1c
1 changed files with 1 additions and 2 deletions
|
|
@ -484,8 +484,7 @@
|
|||
|
||||
if($header_script)
|
||||
{
|
||||
$header_script = str_replace('"','\\"',$header_script);
|
||||
$buff .= sprintf(' $layout_info->header_script = "%s"; ', str_replace('$','\$',$header_script));
|
||||
$buff .= sprintf(' $layout_info->header_script = "%s"; ', str_replace(array('$','"'),array('\$','\\"'),$header_script));
|
||||
}
|
||||
|
||||
$buff = '<?php if(!defined("__ZBXE__")) exit(); '.$buff.' ?>';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue