cvs: phpweb /include layout.inc
| From: | Hannes Magnusson | Date: | Thu, 28 Sep 2006 13:34:12 +0000 |
| Subject: | cvs: phpweb /include layout.inc | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-32842@lists.php.net to get a copy of this message | ||
bjori Thu Sep 28 13:34:12 2006 UTC
Modified files:
/phpweb/include layout.inc
Log:
Fixed bug#33199 (Oversized page)
Patch by dave@
http://cvs.php.net/viewvc.cgi/phpweb/include/layout.inc?r1=1.248&r2=1.249&diff_format=u
Index: phpweb/include/layout.inc
diff -u phpweb/include/layout.inc:1.248 phpweb/include/layout.inc:1.249
--- phpweb/include/layout.inc:1.248 Thu Sep 28 13:29:43 2006
+++ phpweb/include/layout.inc Thu Sep 28 13:34:12 2006
@@ -1,5 +1,5 @@
<?php
-/* $Id: layout.inc,v 1.248 2006/09/28 13:29:43 bjori Exp $ */
+/* $Id: layout.inc,v 1.249 2006/09/28 13:34:12 bjori Exp $ */
// Set the static content root differently on php.net
$_SERVER['STATIC_ROOT'] = ($MYSITE == 'http://www.php.net/') ?
@@ -24,7 +24,7 @@
// This should eventually be a php_syntax_check() call when we move to PHP5
// But use this ugly hack for now to avoid code snippets with bad syntax screwing up the
highlighter
- if(strstr($highlighted,"include/layout.inc</b>")) $highlighted =
"<pre>".htmlentities($code)."</pre>";
+ if(strstr($highlighted,"include/layout.inc</b>")) $highlighted = '<span
class="default">'.htmlentities($code)."</span>";
// Fix output to use CSS classes and wrap well
$highlighted = '<div class="phpcode">' . str_replace(