1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-23 06:33:22 +02:00

Fix navigation links assembling (navigation handler)

This commit is contained in:
SecretR
2013-02-13 17:03:53 +02:00
parent fa0e7ee4b5
commit bcaf4e70c6
5 changed files with 13 additions and 10 deletions

View File

@@ -2012,7 +2012,7 @@ class e_form
$value = ($value ? vartrue($parms['pre']).defset($value, $value).vartrue($parms['post']) : '');
// Inline Editing. //FIXME - doesn't save data
// Inline Editing.
if(!vartrue($attributes['noedit']) && vartrue($parms['editable']) && !vartrue($parms['link'])) // avoid bad markup, better solution coming up
{
$mode = preg_replace('/[^\w]/', '', vartrue($_GET['mode'], ''));
@@ -2048,12 +2048,12 @@ class e_form
{
$value = $tp->htmlwrap($value, (int)$parms['wrap'], varset($parms['wrapChar'], ' '));
}
if(vartrue($parms['link']) && $id && is_numeric($id) )
if(vartrue($parms['link']) && $id && is_numeric($id))
{
$link = str_replace('[id]',$id,$parms['link']);
$link = $tp->replaceConstants($link); // SEF URL is not important since we're in admin.
$dialog = vartrue($parms['dialog']) ? "e-dialog" : "";
$value = "<a class='e-tip {$dialog}' href='".$link."' title='Quick View'>".$value."</a>";
$dialog = vartrue($parms['dialog']) ? " e-dialog" : "";
$value = "<a class='e-tip{$dialog}' href='".$link."' title='Quick View'>".$value."</a>";
}
if(!vartrue($attributes['noedit']) && vartrue($parms['editable']) && !vartrue($parms['link'])) // avoid bad markup, better solution coming up