Index: trunk/extensions/Translate/TranslateHooks.php |
— | — | @@ -357,6 +357,7 @@ |
358 | 358 | $title = Title::newFromText( $title ); |
359 | 359 | if ( !$title ) return ''; |
360 | 360 | $handle = new MessageHandle( $title ); |
| 361 | + if ( !$handle->isValid() ) return ''; |
361 | 362 | $group = $handle->getGroup(); |
362 | 363 | $callParams = array( $title->getPrefixedText(), $group->getId() ); |
363 | 364 | $call = Xml::encodeJsCall( 'mw.translate.openDialog', $callParams ); |
— | — | @@ -364,7 +365,6 @@ |
365 | 366 | mw.loader.using( 'ext.translate.quickedit', function() { $call; } ); return false; |
366 | 367 | JAVASCRIPT; |
367 | 368 | |
368 | | - |
369 | 369 | $a = array( |
370 | 370 | 'href' => $title->getFullUrl( array( 'action' => 'edit' ) ), |
371 | 371 | 'onclick' => $js, |