cvs: pear /Text_Wiki/Text/Wiki/Parse Code.php

From: Date: Thu, 23 Dec 2004 18:40:45 +0000
Subject: cvs: pear /Text_Wiki/Text/Wiki/Parse Code.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-27795@lists.php.net to get a copy of this message
pmjones Thu Dec 23 13:40:45 2004 EDT Modified files: /pear/Text_Wiki/Text/Wiki/Parse Code.php Log: fixed bug 2916 (parser for "code" does not set all attributes) http://cvs.php.net/diff.php/pear/Text_Wiki/Text/Wiki/Parse/Code.php?r1=1.2&r2=1.3&ty=u Index: pear/Text_Wiki/Text/Wiki/Parse/Code.php diff -u pear/Text_Wiki/Text/Wiki/Parse/Code.php:1.2 pear/Text_Wiki/Text/Wiki/Parse/Code.php:1.3 --- pear/Text_Wiki/Text/Wiki/Parse/Code.php:1.2 Sat Sep 25 15:05:13 2004 +++ pear/Text_Wiki/Text/Wiki/Parse/Code.php Thu Dec 23 13:40:45 2004 @@ -1,5 +1,5 @@ <?php -// $Id: Code.php,v 1.2 2004/09/25 19:05:13 pmjones Exp $ +// $Id: Code.php,v 1.3 2004/12/23 18:40:45 pmjones Exp $ /** @@ -60,9 +60,18 @@ 'attr' => array('type' => '') ); } else { + // get the attributes... + $attr = $this->getAttrs($args); + + // ... and make sure we have a 'type' + if (! isset($attr['type'])) { + $attr['type'] = ''; + } + + // retain the options $options = array( 'text' => $matches[3], - 'attr' => $this->getAttrs($args) + 'attr' => $attr ); }

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