cvs: peardoc /scripts pearwebpackagetocs.php

From: Date: Tue, 17 Feb 2009 12:39:16 +0000
Subject: cvs: peardoc /scripts pearwebpackagetocs.php
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-11554@lists.php.net to get a copy of this message
izi Tue Feb 17 12:39:16 2009 UTC Modified files: /peardoc/scripts pearwebpackagetocs.php Log: use long description if short description is empty in toc html list http://cvs.php.net/viewvc.cgi/peardoc/scripts/pearwebpackagetocs.php?r1=1.4&r2=1.5&diff_format=u Index: peardoc/scripts/pearwebpackagetocs.php diff -u peardoc/scripts/pearwebpackagetocs.php:1.4 peardoc/scripts/pearwebpackagetocs.php:1.5 --- peardoc/scripts/pearwebpackagetocs.php:1.4 Thu Feb 12 20:57:03 2009 +++ peardoc/scripts/pearwebpackagetocs.php Tue Feb 17 12:39:16 2009 @@ -23,7 +23,7 @@ require_once 'Console/CommandLine.php'; $parser = new Console_CommandLine(array( 'description' => 'Create package TOC files for pearweb', - 'version' => '$Id: pearwebpackagetocs.php,v 1.4 2009/02/12 20:57:03 cweiske Exp $' + 'version' => '$Id: pearwebpackagetocs.php,v 1.5 2009/02/17 12:39:16 izi Exp $' )); $parser->addOption('verbose', array( @@ -147,7 +147,7 @@ // http://euk1.php.net/package/PHP_CompatInfo/docs // http://news.php.net/php.pear.webmaster/6355 //$desc = ($long ? $long : $short) . '</a>'; - $desc = $short . '</a>'; + $desc = ($short ? $short : $long) . '</a>'; $content .= " <li><a href=\"/manual/en/{$chunkid}.php\">" . $desc; if ($depth > 1) { $content .= createPearwebPackageToc($junk, $depth - 1); @@ -194,4 +194,4 @@ return $nCount; } -?> \ No newline at end of file +?>

« previous php.pear.doc (#11554) next »