mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-06 03:50:04 +02:00
fix old support error
This commit is contained in:
parent
a7e3161c47
commit
2f616da5e7
1 changed files with 5 additions and 1 deletions
|
@ -28,7 +28,11 @@ foreach ($menu as $key => $value) {
|
||||||
foreach ($menuItems as $key2 => $value2) {
|
foreach ($menuItems as $key2 => $value2) {
|
||||||
$url = $value2['url'];
|
$url = $value2['url'];
|
||||||
if (empty($url)) {
|
if (empty($url)) {
|
||||||
|
if(!empty($value2['menuSeoUrlItem'])){
|
||||||
$url = $global['webSiteRootURL'] . "menu/{$value2['menuSeoUrlItem']}";
|
$url = $global['webSiteRootURL'] . "menu/{$value2['menuSeoUrlItem']}";
|
||||||
|
}else{
|
||||||
|
$url = $global['webSiteRootURL'] . "plugin/TopMenu/?id={$value2['id']}";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<li>
|
<li>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue