[prev in list] [next in list] [prev in thread] [next in thread]
List: php-doc-cvs
Subject: [DOC-CVS] cvs: phpdoc /scripts/online_editor editxml.php
From: "Salah Faya" <visualmind () php ! net>
Date: 2008-05-28 6:48:07
Message-ID: cvsvisualmind1211957287 () cvsserver
[Download RAW message or body]
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));
}
}
}
--
PHP Documentation Commits Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic