mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +02:00
Fixes #945 - Broken sitelink path.
This commit is contained in:
@@ -79,7 +79,7 @@ class links_admin_ui extends e_admin_ui
|
|||||||
protected $fields = array(
|
protected $fields = array(
|
||||||
'checkboxes' => array('title'=> '', 'width' => '3%','forced' => true, 'thclass' => 'center first','class' => 'center first'),
|
'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_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_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'),
|
'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)
|
function link_sefurl($curVal,$mode)
|
||||||
{
|
{
|
||||||
if($mode == 'read')
|
if($mode == 'read')
|
||||||
{
|
{
|
||||||
|
$plugin = $this->getController()->getModel()->get('link_owner');
|
||||||
return $curVal; // $this->linkFunctions[$curVal];
|
return $curVal; // $this->linkFunctions[$curVal];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user