mirror of
https://github.com/e107inc/e107.git
synced 2025-03-14 01:19:44 +01:00
Fixes #945 - Broken sitelink path.
This commit is contained in:
parent
ee14656fa0
commit
bacee553bc
@ -79,7 +79,7 @@ class links_admin_ui extends e_admin_ui
|
||||
protected $fields = array(
|
||||
'checkboxes' => array('title'=> '', 'width' => '3%','forced' => true, 'thclass' => 'center first','class' => 'center first'),
|
||||
'link_button' => array('title'=> LAN_ICON, 'type'=>'icon', 'width'=>'5%', 'thclass' => 'center', 'class'=>'center', 'writeParms'=>'glyphs=1'),
|
||||
'link_id' => array('title'=> LAN_ID, 'type'=>'text','readParms'=>'link=link_url&target=dialog','noedit'=>TRUE),
|
||||
'link_id' => array('title'=> LAN_ID, 'type'=>'method','readParms'=>'','noedit'=>TRUE),
|
||||
'link_name' => array('title'=> LCLAN_15, 'width'=>'auto','type'=>'text', 'inline'=>true, 'required' => true, 'validate' => true),
|
||||
'link_category' => array('title'=> LAN_TEMPLATE, 'type' => 'dropdown', 'inline'=>true, 'batch'=>true, 'filter'=>true, 'width' => 'auto'),
|
||||
|
||||
@ -635,11 +635,23 @@ class links_admin_form_ui extends e_admin_form_ui
|
||||
}
|
||||
}
|
||||
|
||||
function link_id($curVal,$mode)
|
||||
{
|
||||
if($mode == 'read')
|
||||
{
|
||||
$linkUrl = $this->getController()->getListModel()->get('link_url');
|
||||
$linkUrl = e107::getParser()->replaceConstants($linkUrl,'abs');
|
||||
$url = $this->link_url($linkUrl,$mode);
|
||||
return "<a href='".$url."' rel='external'>".$curVal."</a>"; // $this->linkFunctions[$curVal];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function link_sefurl($curVal,$mode)
|
||||
{
|
||||
if($mode == 'read')
|
||||
{
|
||||
$plugin = $this->getController()->getModel()->get('link_owner');
|
||||
return $curVal; // $this->linkFunctions[$curVal];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user