[pLog-svn] r1973 - plugins/trunk/dropcase
mark at devel.plogworld.net
mark at devel.plogworld.net
Mon May 9 03:33:18 GMT 2005
Author: mark
Date: 2005-05-09 03:33:17 +0000 (Mon, 09 May 2005)
New Revision: 1973
Modified:
plugins/trunk/dropcase/plugindropcase.class.php
Log:
Add the patch contribute by cytseng in http://forum.plogworld.org.tw/viewtopic.php?p=3766#3766
Modified: plugins/trunk/dropcase/plugindropcase.class.php
===================================================================
--- plugins/trunk/dropcase/plugindropcase.class.php 2005-05-08 22:41:01 UTC (rev 1972)
+++ plugins/trunk/dropcase/plugindropcase.class.php 2005-05-09 03:33:17 UTC (rev 1973)
@@ -91,7 +91,12 @@
// Piece the output back together.
// $bufText = "<div class=\"drop-case\">".$newText[0]."</div>";
- $bufText = str_replace( "<p>", "<p id=\"drop-case\">", $newText[0] );
+ if (ereg("^<p>", $newText[0])) {
+ $bufText = str_replace( "<p>", "<p id=\"drop-case\">", $newText[0] );
+ }
+ else {
+ $bufText = ereg_replace("^", "<p id=\"drop-case\">", $newText[0] );
+ }
$bufText .= "</p>";
for($i = 1; $i < count($newText); $i ++){
More information about the pLog-svn
mailing list