cvs: phpdoc /scripts/online_editor editxml.php

From: Date: Wed, 28 May 2008 06:48:07 +0000
Subject: cvs: phpdoc /scripts/online_editor editxml.php
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-1711@lists.php.net to get a copy of this message
visualmind Wed May 28 06:48:07 2008 UTC Modified files: /phpdoc/scripts/online_editor editxml.php Log: Minor update to avoid parsing \{var} differently http://cvs.php.net/viewvc.cgi/phpdoc/scripts/online_editor/editxml.php?r1=1.3&r2=1.4&diff_format=u Index: phpdoc/scripts/online_editor/editxml.php diff -u phpdoc/scripts/online_editor/editxml.php:1.3 phpdoc/scripts/online_editor/editxml.php:1.4 --- phpdoc/scripts/online_editor/editxml.php:1.3 Mon May 26 07:10:58 2008 +++ phpdoc/scripts/online_editor/editxml.php Wed May 28 06:48:07 2008 @@ -238,16 +238,16 @@ if ($newtext!="'>" && $newtext!='">') { if (strstr($newtext, "\n")) { // This marks text that has new line (so we will use multiline textarea) - $data = substr_replace($data, "_PMRK[$index]\{$newtext}PMRK_", $index, strlen($text)); + $data = substr_replace($data, "_PMRK[$index]{".$newtext."}PMRK_", $index, strlen($text)); } elseif (strstr($newtext, "'") && !strstr($newtext, '"')) { // This marks text that has single quote (so the input field will use double quote) - $data = substr_replace($data, "_ZMRK[$index]\{$newtext}ZMRK_", $index, strlen($text)); + $data = substr_replace($data, "_ZMRK[$index]{".$newtext."}ZMRK_", $index, strlen($text)); } elseif (strstr($newtext, "'") && strstr($newtext, '"')) { // This marks text that has single and double quote (so we will use textarea) - $data = substr_replace($data, "_YMRK[$index]\{$newtext}YMRK_", $index, strlen($text)); + $data = substr_replace($data, "_YMRK[$index]{".$newtext."}YMRK_", $index, strlen($text)); } else { // This marks text that can use a normal input - $data = substr_replace($data, "_XMRK[$index]\{$newtext}XMRK_", $index, strlen($text)); + $data = substr_replace($data, "_XMRK[$index]{".$newtext."}XMRK_", $index, strlen($text)); } } }

« previous php.doc.cvs (#1711) next »