|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-01-26 12:42 UTC] cweiske@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 09:00:02 2025 UTC |
Description: ------------ The pearchm theme is using eregi which is deprecated in PHP5.3. Patch to fix. No karma to PEAR portion of phd. Index: pearchm.php =================================================================== RCS file: /repository/phd/themes/pear/pearchm.php,v retrieving revision 1.6 diff -u -r1.6 pearchm.php --- pearchm.php 1 Nov 2008 09:32:04 -0000 1.6 +++ pearchm.php 31 Dec 2008 11:16:12 -0000 @@ -342,10 +342,10 @@ public function header($id) { $header = parent::header($id); // Add CSS link to <head> - $header = ereg_replace('( *)</head>','\\1 <link media="all" rel="stylesheet" type="text/css" href="reset-fonts.css"/> - <link media="all" rel="stylesheet" type="text/css" href="style.css"/> - <link media="all" rel="stylesheet" href="manual.css"/> -\\1</head>', $header); + $header = preg_replace('`( *)</head>`','$1 <link media="all" rel="stylesheet" type="text/css" href="reset-fonts.css"/> +$1 <link media="all" rel="stylesheet" type="text/css" href="style.css"/> +$1 <link media="all" rel="stylesheet" href="manual.css"/> +$1</head>', $header); return $header; }