cvs: pear /Text_Wiki/Text/Wiki/Render/Latex Wikilink.php

From: Date: Fri, 18 Nov 2005 19:53:12 +0000
Subject: cvs: pear /Text_Wiki/Text/Wiki/Render/Latex Wikilink.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-36367@lists.php.net to get a copy of this message
toggg Fri Nov 18 14:53:12 2005 EDT Modified files: /pear/Text_Wiki/Text/Wiki/Render/Latex Wikilink.php Log: Only variables should be assigned by reference (bug #6010) http://cvs.php.net/diff.php/pear/Text_Wiki/Text/Wiki/Render/Latex/Wikilink.php?r1=1.2&r2=1.3&ty=u Index: pear/Text_Wiki/Text/Wiki/Render/Latex/Wikilink.php diff -u pear/Text_Wiki/Text/Wiki/Render/Latex/Wikilink.php:1.2 pear/Text_Wiki/Text/Wiki/Render/Latex/Wikilink.php:1.3 --- pear/Text_Wiki/Text/Wiki/Render/Latex/Wikilink.php:1.2 Sat Sep 25 15:05:13 2004 +++ pear/Text_Wiki/Text/Wiki/Render/Latex/Wikilink.php Fri Nov 18 14:53:11 2005 @@ -7,27 +7,27 @@ 'new_url' => 'http://example.com/new.php?page=%s', 'new_text' => '?' ); - + /** - * + * * Renders a token into XHTML. - * + * * @access public - * + * * @param array $options The "options" portion of the token (second * element). - * + * * @return string The text rendered from the token options. - * + * */ - + function token($options) { // make nice variable names (page, anchor, text) extract($options); - + // are we checking page existence? - $list =& $this->getConf('pages'); + $list = $this->getConf('pages'); if (is_array($list)) { // yes, check against the page list $exists = in_array($page, $list); @@ -35,15 +35,15 @@ // no, assume it exists $exists = true; } - + // convert *after* checking against page names so as not to mess // up what the user typed and what we're checking. $page = htmlspecialchars($page); $anchor = htmlspecialchars($anchor); $text = htmlspecialchars($text); - + $href = $this->getConf('view_url'); - + if (strpos($href, '%s') === false) { // use the old form (page-at-end) $href = $href . $page . $anchor; @@ -51,10 +51,10 @@ // use the new form (sprintf format string) $href = sprintf($href, $page . $anchor); } - + // get the CSS class and generate output $css = $this->formatConf(' class="%s"', 'css'); return "$text\\footnote\{$href}"; } } -?> \ No newline at end of file +?>

« previous php.pear.cvs (#36367) next »