openrat-cms

# OpenRat Content Management System
git clone http://git.code.weiherhei.de/openrat-cms.git
Log | Files | Refs

commit 7a81845eb99db7219a809f2dcce07aa11e6982f8
parent 4487e256af84253a4c670b7c6548eee1ba083701
Author: Jan Dankert <develop@jandankert.de>
Date:   Wed,  4 Sep 2019 00:13:24 +0200

Die nach auußen sichtbaren URLs benötigen nur Action und eine Id.

Diffstat:
modules/template-engine/components/html/link/Link.class.php | 23++++++++++++-----------
1 file changed, 12 insertions(+), 11 deletions(-)

diff --git a/modules/template-engine/components/html/link/Link.class.php b/modules/template-engine/components/html/link/Link.class.php @@ -167,15 +167,17 @@ class LinkComponent extends Component break; default: - echo ' href="<?php echo Html::url('.$this->value($this->action).','.$this->value($this->subaction).','.$this->value($this->id); - - $arrayvalues = array(); - foreach( $this->getExtraParamArray() as $varname => $varvalue ) - $arrayvalues[] = $this->value($varname) . '=>'.$this->value($varvalue); - - echo ',array('.implode(',',$arrayvalues).')'; - - echo ') ?>"'; + //echo ' href="<?php echo Html::url('.$this->value($this->action).','.$this->value($this->subaction).','.$this->value($this->id); + echo ' href="./#/'.$this->htmlvalue($this->action).'/'.$this->htmlvalue($this->id).'"'; + +// Verlinkungen von draußen brauchen nichts weiter. +// $arrayvalues = array(); +// foreach( $this->getExtraParamArray() as $varname => $varvalue ) +// $arrayvalues[] = $this->value($varname) . '=>'.$this->value($varvalue); +// +// echo ',array('.implode(',',$arrayvalues).')'; +// +/* echo ') ?>"';*/ } echo '>'; @@ -183,8 +185,7 @@ class LinkComponent extends Component public function end() { - echo '</a> -'; + echo '</a>'; }