mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-03 17:22:20 +09:00
issue 3645, php5 대응, 함수 대체
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@13202 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
5fa0bf23d7
commit
5693e340fe
28 changed files with 95 additions and 125 deletions
|
|
@ -217,13 +217,13 @@ class pageView extends page
|
|||
return $matches[0];
|
||||
// In case of .. , get a path
|
||||
}
|
||||
else if(preg_match('/^\.\./i',$val))
|
||||
else if(strncasecmp('..', $val, 2) === 0))
|
||||
{
|
||||
$p = Context::pathToUrl($this->path);
|
||||
return sprintf("%s%s%s%s",$matches[1],$matches[2],$p.$val,$matches[4]);
|
||||
}
|
||||
|
||||
if(substr($val,0,2)=='./') $val = substr($val,2);
|
||||
if(strncasecmp('..', $val, 2) === 0) $val = substr($val,2);
|
||||
$p = Context::pathToUrl($this->path);
|
||||
$path = sprintf("%s%s%s%s",$matches[1],$matches[2],$p.$val,$matches[4]);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue