svn: /phd/ branches/PHD_0_4/phpdotnet/phd/Theme/PHP/CHMSource.php branches/PHD_0_4/themes/php/chmsource.php
trunk/phpdotnet/phd/Theme/PHP/CHMSource.php
| From: | Richard Quadling | Date: | Fri, 14 Aug 2009 12:00:00 +0000 |
| Subject: | svn: /phd/ branches/PHD_0_4/phpdotnet/phd/Theme/PHP/CHMSource.php branches/PHD_0_4/themes/php/chmsource.php trunk/phpdotnet/phd/Theme/PHP/CHMSource.php |
||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-4676@lists.php.net to get a copy of this message | ||
rquadling Fri, 14 Aug 2009 12:00:00 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=287295
Log:
Tidied hhk file to not include dead entries and a small whitespace fix.
Changed paths:
U phd/branches/PHD_0_4/phpdotnet/phd/Theme/PHP/CHMSource.php
U phd/branches/PHD_0_4/themes/php/chmsource.php
U phd/trunk/phpdotnet/phd/Theme/PHP/CHMSource.php
Modified: phd/branches/PHD_0_4/phpdotnet/phd/Theme/PHP/CHMSource.php
===================================================================
--- phd/branches/PHD_0_4/phpdotnet/phd/Theme/PHP/CHMSource.php 2009-08-14 11:42:55 UTC (rev 287294)
+++ phd/branches/PHD_0_4/phpdotnet/phd/Theme/PHP/CHMSource.php 2009-08-14 12:00:00 UTC (rev 287295)
@@ -334,10 +334,12 @@
$charset = $this->LANGUAGES[$lang]["preferred_charset"];
$content = htmlspecialchars(iconv('UTF-8', $charset,
$this->lastContent["name"]), ENT_QUOTES);
- fwrite($this->hhkStream, " <li><object
type=\"text/sitemap\">\n" .
- " <param name=\"Local\"
value=\"{$this->lastContent["reference"]}\">\n" .
- " <param name=\"Name\" value=\"" . $content .
"\">\n" .
- " </object>\n </li>\n");
+ if ($this->lastContent["reference"] || $content) {
+ fwrite($this->hhkStream, " <li><object
type=\"text/sitemap\">\n" .
+ " <param name=\"Local\"
value=\"{$this->lastContent["reference"]}\">\n" .
+ " <param name=\"Name\" value=\"" . $content .
"\">\n" .
+ " </object>\n </li>\n");
+ }
return false;
}
Modified: phd/branches/PHD_0_4/themes/php/chmsource.php
===================================================================
--- phd/branches/PHD_0_4/themes/php/chmsource.php 2009-08-14 11:42:55 UTC (rev 287294)
+++ phd/branches/PHD_0_4/themes/php/chmsource.php 2009-08-14 12:00:00 UTC (rev 287295)
@@ -334,10 +334,12 @@
$charset = $this->LANGUAGES[$lang]["preferred_charset"];
$content = htmlspecialchars(iconv('UTF-8', $charset,
$this->lastContent["name"]), ENT_QUOTES);
- fwrite($this->hhkStream, " <li><object
type=\"text/sitemap\">\n" .
- " <param name=\"Local\"
value=\"{$this->lastContent["reference"]}\">\n" .
- " <param name=\"Name\" value=\"" . $content .
"\">\n" .
- " </object>\n </li>\n");
+ if ($this->lastContent["reference"] || $content) {
+ fwrite($this->hhkStream, " <li><object
type=\"text/sitemap\">\n" .
+ " <param name=\"Local\"
value=\"{$this->lastContent["reference"]}\">\n" .
+ " <param name=\"Name\" value=\"" . $content .
"\">\n" .
+ " </object>\n </li>\n");
+ }
return false;
}
Modified: phd/trunk/phpdotnet/phd/Theme/PHP/CHMSource.php
===================================================================
--- phd/trunk/phpdotnet/phd/Theme/PHP/CHMSource.php 2009-08-14 11:42:55 UTC (rev 287294)
+++ phd/trunk/phpdotnet/phd/Theme/PHP/CHMSource.php 2009-08-14 12:00:00 UTC (rev 287295)
@@ -334,10 +334,12 @@
$charset = $this->LANGUAGES[Config::language()]["preferred_charset"];
$content = htmlspecialchars(iconv('UTF-8', $charset,
$this->lastContent["name"]), ENT_QUOTES);
- fwrite($this->hhkStream, " <li><object
type=\"text/sitemap\">\n" .
- " <param name=\"Local\"
value=\"{$this->lastContent["reference"]}\">\n" .
- " <param name=\"Name\" value=\"" . $content .
"\">\n" .
- " </object>\n </li>\n");
+ if ($this->lastContent["reference"] || $content) {
+ fwrite($this->hhkStream, " <li><object
type=\"text/sitemap\">\n" .
+ " <param name=\"Local\"
value=\"{$this->lastContent["reference"]}\">\n" .
+ " <param name=\"Name\" value=\"" . $content .
"\">\n" .
+ " </object>\n </li>\n");
+ }
return false;
}