Index: trunk/extensions/SemanticForms/includes/SF_FormUtils.php |
— | — | @@ -246,7 +246,7 @@ |
247 | 247 | static function cancelLinkHTML( $is_disabled, $label = null, $attr = array() ) { |
248 | 248 | global $wgTitle; |
249 | 249 | |
250 | | - $linker = smwfGetLinker(); |
| 250 | + $linker = class_exists( 'DummyLinker' ) ? new DummyLinker() : new Linker(); |
251 | 251 | if ( $label == null ) |
252 | 252 | $label = wfMsgExt( 'cancel', array( 'parseinline' ) ); |
253 | 253 | if ( $wgTitle == null ) |
— | — | @@ -259,7 +259,7 @@ |
260 | 260 | } else { |
261 | 261 | $cancel = $linker->link( $wgTitle, $label, array(), array(), 'known' ); |
262 | 262 | } |
263 | | - $text = " <span class='editHelp'>$cancel</span>\n"; |
| 263 | + $text = "\t\t<span class='editHelp'>$cancel</span>\n"; |
264 | 264 | return $text; |
265 | 265 | } |
266 | 266 | |