Index: trunk/extensions/SemanticForms/includes/SF_FormLinker.php |
— | — | @@ -267,18 +267,11 @@ |
268 | 268 | global $sfgRedLinksCheckOnlyLocalProps; |
269 | 269 | if ( $sfgRedLinksCheckOnlyLocalProps ) { |
270 | 270 | $incoming_properties = array(); |
271 | | - if ( $linker instanceof DummyLinker ) { |
272 | | - global $wgTitle; |
273 | | - $curTitle = $wgTitle; |
274 | | - } elseif ( is_callable( array( $linker, 'getContext' ) ) ) { |
275 | | - $curTitle = $linker->getContext()->getTitle(); |
276 | | - } else { |
277 | | - $curTitle = $linker->getTitle(); |
278 | | - } |
| 271 | + global $wgTitle; |
279 | 272 | // If this is called from the command line, $wgTitle |
280 | 273 | // might not have been set. |
281 | | - if ( !is_null( $curTitle ) ) { |
282 | | - self::getPagePropertiesOfPage( $curTitle ); |
| 274 | + if ( !is_null( $wgTitle ) ) { |
| 275 | + self::getPagePropertiesOfPage( $wgTitle ); |
283 | 276 | $targetName = $target->getText(); |
284 | 277 | if ( array_key_exists( $targetName, self::$mLinkedPages ) ) { |
285 | 278 | $incoming_properties = self::$mLinkedPages[$targetName]; |