Dashboard: fix complex urls
This commit is contained in:
parent
92b2c5061d
commit
fa44197947
|
@ -493,7 +493,7 @@ class IniEditor
|
|||
private function isPropertyDeclaration($lineContent, array $key)
|
||||
{
|
||||
return preg_match(
|
||||
'/^\s*' . $this->formatKey($key) . '\s*=\s*/',
|
||||
'/^\s*' . preg_quote($this->formatKey($key)) . '\s*=\s*/',
|
||||
$lineContent
|
||||
) === 1;
|
||||
}
|
||||
|
|
|
@ -156,15 +156,12 @@ EOD;
|
|||
public function toArray()
|
||||
{
|
||||
$array = array(
|
||||
'url' => $this->url->getPath(),
|
||||
'url' => $this->url->getRelativeUrl(),
|
||||
'title' => $this->getTitle()
|
||||
);
|
||||
if ($this->getDisabled() === true) {
|
||||
$array['disabled'] = 1;
|
||||
}
|
||||
foreach ($this->url->getParams()->toArray() as $param) {
|
||||
$array[$param[0]] = $param[1];
|
||||
}
|
||||
return $array;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue