cvs: phpweb / bugs.php /include format-text.inc

From: Date: Sat, 07 Jul 2001 21:33:20 +0000
Subject: cvs: phpweb / bugs.php /include format-text.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-5311@lists.php.net to get a copy of this message
jimw Sat Jul 7 17:33:20 2001 EDT Removed files: /phpweb/include format-text.inc Modified files: /phpweb bugs.php Log: hey, php 4 has a wordwrap() function. just use that. (and we weren't using the indent() function, anyway) Index: phpweb/bugs.php diff -u phpweb/bugs.php:1.138 phpweb/bugs.php:1.139 --- phpweb/bugs.php:1.138 Sat Jul 7 17:01:04 2001 +++ phpweb/bugs.php Sat Jul 7 17:33:13 2001 @@ -1,8 +1,6 @@ <?php /* vim: set noet ts=4 sw=4: : */ require_once 'prepend.inc'; -require 'format-text.inc'; - if (isset($save) && isset($pw)) { # non-developers don't have $user set setcookie("MAGIC_COOKIE",base64_encode("$user:$pw"),time()+3600*24*12,'/'); } @@ -84,11 +82,11 @@ echo htmlspecialchars($sdesc), "\n\n"; - wrap(htmlspecialchars($ldesc)); + echo wordwrap(htmlspecialchars($ldesc)); echo "</pre>\n"; - $ascii_report = "$report$sdesc\n\n$ldesc"; + $ascii_report = "$report$sdesc\n\n".wordwrap($ldesc); $ascii_report.= "\n-- \nEdit bug report at: http://bugs.php.net/?id=$cid&edit=1\n"; $mailto = $mail_bugs_to . (eregi("documentation",$bug_type) ? ",phpdoc@lists.php.net" : ""); @@ -443,7 +441,7 @@ /* ORIGINAL REPORT */ echo "<b><i>[$original[ts1]] $original[email]</i></b><br>\n"; echo "<blockquote><blockquote><pre>"; - wrap(addlinks($original[ldesc]),90); + echo wordwrap(addlinks($original[ldesc]),90); echo "</pre></blockquote></blockquote>\n"; /* OLD-STYLE DEVELOPER COMMENT */ @@ -451,7 +449,7 @@ echo "<b><i>[$original[ts2] $original[dev_id]@php.net</i></b><br>\n"; $text=addlinks($row[8]); echo "<blockquote><blockquote><pre>"; - wrap(addlinks($original[comments]),90); + echo wordwrap(addlinks($original[comments]),90); echo "</pre></blockquote></blockquote>\n"; } @@ -461,7 +459,7 @@ while ($com = mysql_fetch_array($comresult)) { echo "<b><i>[$com[ts]] $com[email]</i></b><br>\n"; echo "<blockquote><blockquote><pre>"; - wrap(addlinks($com[comment]),90); + echo wordwrap(addlinks($com[comment]),90); echo "</pre></blockquote></blockquote>\n"; } }

« previous php.mirrors (#5311) next »