cvs: peardoc / colorize.php

[email protected] ("Mark Wiesemann")
Newsgroups php.pear.doc
Message-ID <cvswiesemann1198966636@cvsserver>
wiesemann		Sat Dec 29 22:17:16 2007 UTC

  Modified files:              
    /peardoc	colorize.php 
  Log:
  - the regexp needs to stay in uppercase, only the output may be in lowercase
  
http://cvs.php.net/viewvc.cgi/peardoc/colorize.php?r1=1.3&r2=1.4&diff_format=u
Index: peardoc/colorize.php
diff -u peardoc/colorize.php:1.3 peardoc/colorize.php:1.4
--- peardoc/colorize.php:1.3	Sat Dec 29 22:12:12 2007
+++ peardoc/colorize.php	Sat Dec 29 22:17:16 2007
@@ -18,7 +18,7 @@
 // |          Martin Jansen <[email protected]>                                  |
 // +----------------------------------------------------------------------+
 //
-// $Id: colorize.php,v 1.3 2007/12/29 22:12:12 wiesemann Exp $
+// $Id: colorize.php,v 1.4 2007/12/29 22:17:16 wiesemann Exp $
 //
 
 /**
@@ -132,7 +132,7 @@
     $content = join("", file($htmldir . "/" . $filename));
 
     $content = preg_replace_callback(
-        "!<pre\s+class=\"php\"\s+>(.+)</pre!Us",
+        "!<PRE\s+CLASS=\"php\"\s+>(.+)</PRE!Us",
         "format",
         $content
     );
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.