cvs: phd /themes/php phpdotnet.php
| From: | Hannes Magnusson | Date: | Sun, 19 Aug 2007 12:11:11 +0000 |
| Subject: | cvs: phd /themes/php phpdotnet.php | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969377720@lists.php.net to get a copy of this message | ||
bjori Sun Aug 19 12:11:11 2007 UTC
Modified files:
/phd/themes/php phpdotnet.php
Log:
Fix empty <link xlink:href=".." /> elements (Reported by Nicolas)
http://cvs.php.net/viewvc.cgi/phd/themes/php/phpdotnet.php?r1=1.7&r2=1.8&diff_format=u
Index: phd/themes/php/phpdotnet.php
diff -u phd/themes/php/phpdotnet.php:1.7 phd/themes/php/phpdotnet.php:1.8
--- phd/themes/php/phpdotnet.php:1.7 Sat Aug 18 22:49:00 2007
+++ phd/themes/php/phpdotnet.php Sun Aug 19 12:11:11 2007
@@ -1,5 +1,5 @@
<?php
-/* $Id: phpdotnet.php,v 1.7 2007/08/18 22:49:00 bjori Exp $ */
+/* $Id: phpdotnet.php,v 1.8 2007/08/19 12:11:11 bjori Exp $ */
class phpdotnet extends PhDHelper {
protected $elementmap = array(
@@ -102,7 +102,7 @@
$info = $versions;
return $versions;
}
- public function format_link($open, $name, $attrs) {
+ public function format_link($open, $name, $attrs, $props) {
if ($open) {
$content = $fragment = "";
$class = $name;
@@ -124,6 +124,8 @@
$this->chunked ?
$href : (isset($linkto) ? $linkto : $href),
$class, $content . PhDHelper::getDescription($id, false));
+ } elseif ($props["empty"]) {
+ return sprintf('<a href="%s%s%s"
class="%s">%s%2$s</a>', $this->chunked ? "" : "#",
$href, $fragment, $class, $content);
} else {
return sprintf('<a href="%s%s%s" class="%s">',
$this->chunked ? "" : "#", $href, $fragment, $class);
}