cvs: phd /themes/pear pearweb.php

From: Date: Sun, 15 Feb 2009 09:53:10 +0000
Subject: cvs: phd /themes/pear pearweb.php
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-3253@lists.php.net to get a copy of this message
cweiske Sun Feb 15 09:53:10 2009 UTC Modified files: /phd/themes/pear pearweb.php Log: Generate syntactically correct php files for pearweb when description or title have a quote in it. http://cvs.php.net/viewvc.cgi/phd/themes/pear/pearweb.php?r1=1.11&r2=1.12&diff_format=u Index: phd/themes/pear/pearweb.php diff -u phd/themes/pear/pearweb.php:1.11 phd/themes/pear/pearweb.php:1.12 --- phd/themes/pear/pearweb.php:1.11 Wed Feb 11 05:08:17 2009 +++ phd/themes/pear/pearweb.php Sun Feb 15 09:53:10 2009 @@ -5,7 +5,7 @@ * PEAR theme for the many php files used for pearweb * * @package PhD -* @version CVS: $Id: pearweb.php,v 1.11 2009/02/11 05:08:17 cweiske Exp $ +* @version CVS: $Id: pearweb.php,v 1.12 2009/02/15 09:53:10 cweiske Exp $ */ class pearweb extends peartheme { @@ -159,7 +159,10 @@ return "<?php \n" . "sendManualHeaders(\"UTF-8\", \"{$this->lang}\");\n" . "setupNavigation(" . var_export($nav, true) . ");\n" . - 'manualHeader("' . $this->getFilename($id).$ext . '", "' . PhDHelper::getDescription($id, true) . '");' . "\n" . + 'manualHeader("' + . $this->getFilename($id).$ext . '", ' + . var_export(PhDHelper::getDescription($id, true), true) + . ');' . "\n" . "?>\n"; } @@ -177,7 +180,10 @@ $ext = $this->ext . "."; $parent = PhDHelper::getParent($id); - return '<?php manualFooter("' . $this->getFilename($id).$ext . '", "' . PhDHelper::getDescription($id, true) . '"); ?>'; + return '<?php manualFooter("' + . $this->getFilename($id).$ext . '", ' + . var_export(PhDHelper::getDescription($id, true), true) + . '); ?>'; } /**

« previous php.doc.cvs (#3253) next »