mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
issue 2931 if menu start with 'http://', change type to shortcut
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12728 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
c1f6076769
commit
3a11f85ee3
1 changed files with 1 additions and 1 deletions
|
|
@ -88,7 +88,7 @@ class menu extends ModuleObject
|
|||
}
|
||||
|
||||
// if url is empty, change type to shortcurt
|
||||
if($value2->is_shortcut == 'N' && !$value2->url)
|
||||
if($value2->is_shortcut == 'N' && (!$value2->url || preg_match('/^http/i',$value2->url)))
|
||||
{
|
||||
$value2->is_shortcut = 'Y';
|
||||
$output3 = executeQuery('menu.updateMenuItem', $value2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue