cvs: peardoc /scripts pearwebpackagetocs.php

From: Date: Thu, 12 Feb 2009 20:57:03 +0000
Subject: cvs: peardoc /scripts pearwebpackagetocs.php
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-11551@lists.php.net to get a copy of this message
cweiske Thu Feb 12 20:57:03 2009 UTC Modified files: /peardoc/scripts pearwebpackagetocs.php Log: Fix pearweb package tocs at Laurent's request http://news.php.net/php.pear.webmaster/6355 http://cvs.php.net/viewvc.cgi/peardoc/scripts/pearwebpackagetocs.php?r1=1.3&r2=1.4&diff_format=u Index: peardoc/scripts/pearwebpackagetocs.php diff -u peardoc/scripts/pearwebpackagetocs.php:1.3 peardoc/scripts/pearwebpackagetocs.php:1.4 --- peardoc/scripts/pearwebpackagetocs.php:1.3 Wed Jan 28 22:43:50 2009 +++ peardoc/scripts/pearwebpackagetocs.php Thu Feb 12 20:57:03 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.3 2009/01/28 22:43:50 cweiske Exp $' + 'version' => '$Id: pearwebpackagetocs.php,v 1.4 2009/02/12 20:57:03 cweiske Exp $' )); $parser->addOption('verbose', array( @@ -143,7 +143,11 @@ foreach ($chunks as $chunkid => $junk) { $long = $junk['ldesc']; $short = $junk['sdesc']; - $desc = ($long ? $long : $short) . '</a>'; + //Laurent's package tocs did not look so good with the long options: + // http://euk1.php.net/package/PHP_CompatInfo/docs + // http://news.php.net/php.pear.webmaster/6355 + //$desc = ($long ? $long : $short) . '</a>'; + $desc = $short . '</a>'; $content .= " <li><a href=\"/manual/en/{$chunkid}.php\">" . $desc; if ($depth > 1) { $content .= createPearwebPackageToc($junk, $depth - 1); @@ -169,7 +173,7 @@ { $arIndex = unserialize(file_get_contents($indexFile)); $nCount = 0; - + if (!isset($arIndex['packages'])) { throw new Exception('Index file is corrupt (no packages): ' . $indexFile); }

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