Index: trunk/extensions/SemanticMediaWiki/includes/SMW_Infolink.php |
— | — | @@ -326,7 +326,7 @@ |
327 | 327 | */ |
328 | 328 | protected function getLinker( &$linker = null ) { |
329 | 329 | if ( $linker === null ) { |
330 | | - $linker = new Linker(); |
| 330 | + $linker = class_exists('DummyLinker') ? new DummyLinker : new Linker; |
331 | 331 | } |
332 | 332 | return $linker; |
333 | 333 | } |
— | — | @@ -476,4 +476,4 @@ |
477 | 477 | return $result; |
478 | 478 | } |
479 | 479 | |
480 | | -} |
\ No newline at end of file |
| 480 | +} |
Index: trunk/extensions/SemanticMediaWiki/includes/SMW_QueryPrinter.php |
— | — | @@ -112,7 +112,7 @@ |
113 | 113 | $this->mInline = $inline; |
114 | 114 | $this->mLinkFirst = ( $smwgQDefaultLinking != 'none' ); |
115 | 115 | $this->mLinkOthers = ( $smwgQDefaultLinking == 'all' ); |
116 | | - $this->mLinker = new Linker(); ///TODO: how can we get the default or user skin here (depending on context)? |
| 116 | + $this->mLinker = class_exists('DummyLinker') ? new DummyLinker : new Linker; ///TODO: how can we get the default or user skin here (depending on context)? |
117 | 117 | $this->useValidator = $useValidator; |
118 | 118 | } |
119 | 119 | |
— | — | @@ -626,4 +626,4 @@ |
627 | 627 | return $params; |
628 | 628 | } |
629 | 629 | |
630 | | -} |
\ No newline at end of file |
| 630 | +} |