cvs: phd /themes/php phpdotnet.php
| From: | Hannes Magnusson | Date: | Tue, 04 Dec 2007 12:19:33 +0000 |
| Subject: | cvs: phd /themes/php phpdotnet.php | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-527@lists.php.net to get a copy of this message | ||
bjori Tue Dec 4 12:19:33 2007 UTC
Modified files:
/phd/themes/php phpdotnet.php
Log:
Partial fix for bug#43489 (Class synopsis return types are not links)
http://cvs.php.net/viewvc.cgi/phd/themes/php/phpdotnet.php?r1=1.31&r2=1.32&diff_format=u
Index: phd/themes/php/phpdotnet.php
diff -u phd/themes/php/phpdotnet.php:1.31 phd/themes/php/phpdotnet.php:1.32
--- phd/themes/php/phpdotnet.php:1.31 Tue Dec 4 11:36:18 2007
+++ phd/themes/php/phpdotnet.php Tue Dec 4 12:19:33 2007
@@ -1,5 +1,5 @@
<?php
-/* $Id: phpdotnet.php,v 1.31 2007/12/04 11:36:18 bjori Exp $ */
+/* $Id: phpdotnet.php,v 1.32 2007/12/04 12:19:33 bjori Exp $ */
abstract class phpdotnet extends PhDTheme {
protected $elementmap = array(
@@ -426,7 +426,11 @@
$href = "language.pseudo-types";
$fragment = "language.types.$t";
break;
+ default:
+ /* Check if its a classname. */
+ $href = PhDTheme::getFilename("class.$t");
}
+
if ($href && $this->chunked) {
return '<a href="' .$href. '.' .$this->ext.($fragment ?
"#$fragment" : ""). '" class="' .$tagname. ' '
.$type. '">' .$type. '</a>';
}