diff --git a/includes/common/Hooks.php b/includes/common/Hooks.php index 2eb616e6..b2b02145 100644 --- a/includes/common/Hooks.php +++ b/includes/common/Hooks.php @@ -370,9 +370,9 @@ class ScribuntoHooks { $status->merge( $validateStatus ); - if ( isset( $validateStatus->scribunto_error->params['module'] ) ) { - $module = $validateStatus->scribunto_error->params['module']; - $line = $validateStatus->scribunto_error->params['line']; + if ( isset( $validateStatus->value->params['module'] ) ) { + $module = $validateStatus->value->params['module']; + $line = $validateStatus->value->params['line']; if ( $module === $title->getPrefixedDBkey() && preg_match( '/^\d+$/', $line ) ) { $out = $context->getOutput(); $out->addInlineScript( 'window.location.hash = ' . Xml::encodeJsVar( "#mw-ce-l$line" ) ); diff --git a/includes/common/ScribuntoException.php b/includes/common/ScribuntoException.php index d37885c2..9407072a 100644 --- a/includes/common/ScribuntoException.php +++ b/includes/common/ScribuntoException.php @@ -65,7 +65,7 @@ class ScribuntoException extends MWException { public function toStatus() { $status = Status::newFatal( $this->messageName, ...$this->messageArgs ); - $status->scribunto_error = $this; + $status->value = $this; return $status; }