Index: trunk/extensions/TitleBlacklist/api/ApiQueryTitleBlacklist.php |
— | — | @@ -62,7 +62,9 @@ |
63 | 63 | |
64 | 64 | $this->getResult()->addValue( 'titleblacklist', 'result', 'blacklisted' ); |
65 | 65 | // this is hardcoded to 'edit' in Titleblacklist.hooks.php, duplicating that. |
66 | | - $this->getResult()->addValue( 'titleblacklist', 'reason', wfMessage( $blacklisted->getErrorMessage( 'edit' ), $result )->text() ); |
| 66 | + $message = $blacklisted->getErrorMessage( 'edit' ); |
| 67 | + $this->getResult()->addValue( 'titleblacklist', 'reason', wfMessage( $message, $result )->text() ); |
| 68 | + $this->getResult()->addValue( 'titleblacklist', 'message', $message ); |
67 | 69 | $this->getResult()->addValue( 'titleblacklist', 'line', htmlspecialchars( $blacklisted->getRaw() ) ); |
68 | 70 | } else { |
69 | 71 | // not blacklisted |