Index: trunk/phase3/includes/api/ApiParse.php |
— | — | @@ -136,7 +136,7 @@ |
137 | 137 | $to = $page; |
138 | 138 | } |
139 | 139 | $titleObj = Title::newFromText( $to ); |
140 | | - if ( !$titleObj ) { |
| 140 | + if ( !$titleObj || !$titleObj->exists() ) { |
141 | 141 | $this->dieUsage( "The page you specified doesn't exist", 'missingtitle' ); |
142 | 142 | } |
143 | 143 | } |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -65,6 +65,7 @@ |
66 | 66 | * Add a realname uiprop option to query=userinfo so a user's realname can be extracted |
67 | 67 | * Add a &watchuser option to ApiBlock |
68 | 68 | * (bug 26541) Generator-ise ApiQueryRecentChanges |
| 69 | +* action=parse now correctly returns an error for nonexistent pages |
69 | 70 | |
70 | 71 | === Languages updated in 1.18 === |
71 | 72 | |