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