Index: trunk/extensions/SemanticMediaWiki/includes/SMW_PageLister.php |
— | — | @@ -61,7 +61,7 @@ |
62 | 62 | $resultCount = count( $this->mDiWikiPages ); |
63 | 63 | $beyondLimit = ( $resultCount > $this->mLimit ); |
64 | 64 | |
65 | | - if ( $this->mUntil !== '' ) { |
| 65 | + if ( !is_null( $this->mUntil ) && $this->mUntil !== '' ) { |
66 | 66 | if ( $beyondLimit ) { |
67 | 67 | $first = smwfGetStore()->getWikiPageSortKey( $this->mDiWikiPages[1] ); |
68 | 68 | } else { |
— | — | @@ -69,7 +69,7 @@ |
70 | 70 | } |
71 | 71 | |
72 | 72 | $last = $this->mUntil; |
73 | | - } elseif ( $beyondLimit || ( $this->mFrom !== '' ) ) { |
| 73 | + } elseif ( $beyondLimit || ( !is_null( $this->mFrom ) && $this->mFrom !== '' ) ) { |
74 | 74 | $first = $this->mFrom; |
75 | 75 | |
76 | 76 | if ( $beyondLimit ) { |
— | — | @@ -100,7 +100,7 @@ |
101 | 101 | * @return string |
102 | 102 | */ |
103 | 103 | protected function makeSelfLink( Title $title, $linkText, array $parameters ) { |
104 | | - return smwfGetLinker()->makeLinkObj( $title, $linkText, wfArrayToCGI( $parameters ) ); |
| 104 | + return smwfGetLinker()->makeKnownLinkObj( $title, $linkText, wfArrayToCGI( $parameters ) ); |
105 | 105 | } |
106 | 106 | |
107 | 107 | /** |