Index: trunk/extensions/SemanticMediaWiki/specials/SearchTriple/SMW_SpecialPageProperty.php |
— | — | @@ -13,7 +13,7 @@ |
14 | 14 | * This special page for Semantic MediaWiki implements a |
15 | 15 | * view on a object-relation pair, i.e. a page that shows |
16 | 16 | * all the fillers of a property for a certain page. |
17 | | - * This is typically used for overflow results from other |
| 17 | + * This is typically used for overflow results from other |
18 | 18 | * dynamic output pages. |
19 | 19 | * |
20 | 20 | * @ingroup SMWSpecialPage |
— | — | @@ -65,10 +65,10 @@ |
66 | 66 | |
67 | 67 | wfLoadExtensionMessages('SemanticMediaWiki'); |
68 | 68 | |
69 | | - if (('' == $type) || ('' == $from)) { // No relation or subject given. |
| 69 | + if (('' == $type)) { // No relation or subject given. |
70 | 70 | $html .= wfMsg('smw_pp_docu') . "\n"; |
71 | 71 | } else { // everything is given |
72 | | - $wgOut->setPagetitle($subject->getFullText() . ' ' . $property->getWikiValue()); |
| 72 | + $wgOut->setPagetitle( ($subject === NULL?'':$subject->getFullText() . ' ') . $property->getWikiValue()); |
73 | 73 | $options = new SMWRequestOptions(); |
74 | 74 | $options->limit = $limit+1; |
75 | 75 | $options->offset = $offset; |