openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit fc814a195dc5cfff644ac91c1f3065aae51841c4
parent 407278b44ed4dbf7f515ed26b63a49c12da4dc10
Author: dankert <devnull@localhost>
Date:   Thu, 18 Mar 2010 02:54:54 +0100

Beim Generieren der Inhalte die OIDs verlinken.

Diffstat:
objectClasses/Value.class.php | 9++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/objectClasses/Value.class.php b/objectClasses/Value.class.php @@ -1048,7 +1048,14 @@ SQL $inhalt = str_replace( "\n",'',$inhalt ); $inhalt = str_replace( "\r",'',$inhalt ); } - + + // "__OID__nnn__" ersetzen durch einen richtigen Link + foreach( Text::parseOID($inhalt) as $oid=>$t ) + { + $url = $this->page->path_to_object($oid); + $inhalt = str_replace($t,'"'.$url.'"',$inhalt); + } + break;