cvs: pear /PhpDocumentor/phpDocumentor Setup.inc.php
| From: | Greg Beaver | Date: | Sun, 20 Nov 2005 19:36:50 +0000 |
| Subject: | cvs: pear /PhpDocumentor/phpDocumentor Setup.inc.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-36402@lists.php.net to get a copy of this message | ||
cellog Sun Nov 20 14:36:50 2005 EDT
Modified files:
/pear/PhpDocumentor/phpDocumentor Setup.inc.php
Log:
fix ignoretags -- the "ignore-tags" option was never
actually used, making it possible to ignore critical
tags
http://cvs.php.net/diff.php/pear/PhpDocumentor/phpDocumentor/Setup.inc.php?r1=1.4&r2=1.5&ty=u
Index: pear/PhpDocumentor/phpDocumentor/Setup.inc.php
diff -u pear/PhpDocumentor/phpDocumentor/Setup.inc.php:1.4
pear/PhpDocumentor/phpDocumentor/Setup.inc.php:1.5
--- pear/PhpDocumentor/phpDocumentor/Setup.inc.php:1.4 Sun Nov 20 14:26:12 2005
+++ pear/PhpDocumentor/phpDocumentor/Setup.inc.php Sun Nov 20 14:36:46 2005
@@ -20,7 +20,7 @@
/**
* This was all in phpdoc.inc, and now encapsulates the complexity
* @author Greg Beaver <cellog@users.sourceforge.net>
- * @version $Revision: 1.4 $
+ * @version $Revision: 1.5 $
* @package phpDocumentor
* @since 1.2
*/
@@ -252,14 +252,15 @@
if (isset($_phpDocumentor_setting['ignoretags']))
{
- $_phpDocumentor_setting['ignoretags'] =
explode(',',str_replace('
','',$_phpDocumentor_setting['ignoretags']));
+ $ignoretags = explode(',', $_phpDocumentor_setting['ignoretags']);
+ $ignoretags = array_map('trim', $ignoretags);
$tags = array();
- foreach($_phpDocumentor_setting['ignoretags'] as $tag)
+ foreach($ignoretags as $tag)
{
if (!in_array($tag,array('@global', '@access',
'@package', '@ignore', '@name', '@param',
'@return', '@staticvar', '@var')))
$tags[] = $tag;
}
- $_phpDocumentor_setting['ignore-tags'] = $tags;
+ $_phpDocumentor_setting['ignoretags'] = $tags;
}
if (isset($_phpDocumentor_setting['readmeinstallchangelog']))