mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 04:40:44 +02:00
Fix for SEF Url selection. Index or disabled only.
This commit is contained in:
@@ -29,7 +29,7 @@ if (!getperms("I"))
|
|||||||
|
|
||||||
e107::coreLan('links', true);
|
e107::coreLan('links', true);
|
||||||
|
|
||||||
|
e107::css('inline', " td .label-warning { margin-left:30px } ");
|
||||||
|
|
||||||
|
|
||||||
class links_admin extends e_admin_dispatcher
|
class links_admin extends e_admin_dispatcher
|
||||||
@@ -720,12 +720,13 @@ class links_admin_form_ui extends e_admin_form_ui
|
|||||||
|
|
||||||
foreach($config as $k=>$v)
|
foreach($config as $k=>$v)
|
||||||
{
|
{
|
||||||
if(strpos($v['regex'],')')===false) // only provide urls without dynamic elements.
|
if($k == 'index') // only provide urls without dynamic elements.
|
||||||
{
|
{
|
||||||
$opts[] = $k;
|
$opts[] = $k;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sort($opts);
|
||||||
|
|
||||||
return $this->select('link_sefurl', $opts, $curVal, array('useValues'=>true,'defaultValue'=>'','default'=>'('.LAN_DISABLED.')'));
|
return $this->select('link_sefurl', $opts, $curVal, array('useValues'=>true,'defaultValue'=>'','default'=>'('.LAN_DISABLED.')'));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user