mirror of
https://github.com/bcit-ci/CodeIgniter.git
synced 2025-02-20 11:13:29 +08:00
...
parent
0bbb8263cb
commit
8f65e39575
@ -47,20 +47,20 @@ class Render
|
||||
{
|
||||
if (isset($vars['wrap']))
|
||||
{
|
||||
if (substr($vars['wrap'],0,5) == '</')
|
||||
if (substr($vars['wrap'],0,5) == '</')
|
||||
{
|
||||
$this->load->view($view, $vars, $return);
|
||||
$this->bypass_view($vars['wrap']);
|
||||
} elseif (strstr($vars['wrap'],'&gt;&lt;/') == FALSE)
|
||||
} elseif (strstr($vars['wrap'],'></') == FALSE)
|
||||
{
|
||||
$this->bypass_view($vars['wrap']);
|
||||
$this->load->view($view, $vars, $return);
|
||||
} else
|
||||
{
|
||||
$bookends = explode('&gt;&lt;/',$vars['wrap'],2);
|
||||
$bookends = explode('></',$vars['wrap'],2);
|
||||
$this->bypass_view($bookends[0].'&gt;');
|
||||
$this->load->view($view, $vars, $return);
|
||||
$this->bypass_view('&lt;/'.$bookends[1]);
|
||||
$this->bypass_view('</'.$bookends[1]);
|
||||
}
|
||||
} else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user