Change Details
| src/IDF/Views/Wiki.php |
| 222 | 222 | array($prj->id, $match[2])); |
| 223 | 223 | $pages = Pluf::factory('IDF_WikiPage')->getList(array('filter'=>$sql->gen())); |
| 224 | 224 | if ($pages->count() != 1) { |
| 225 | | throw new Pluf_HTTP_Response_NotFound($request); |
| 225 | return new Pluf_HTTP_Response_NotFound($request); |
| 226 | 226 | } |
| 227 | 227 | $page = $pages[0]; |
| 228 | 228 | $oldrev = false; |
| ... | ... | |
| 231 | 231 | $oldrev = Pluf_Shortcuts_GetObjectOr404('IDF_WikiRevision', |
| 232 | 232 | $request->GET['rev']); |
| 233 | 233 | if ($oldrev->wikipage != $page->id or $oldrev->is_head == true) { |
| 234 | | throw new Pluf_HTTP_Response_NotFound($request); |
| 234 | return new Pluf_HTTP_Response_NotFound($request); |
| 235 | 235 | } |
| 236 | 236 | } |
| 237 | 237 | $ptags = self::getWikiTags($prj); |
| ... | ... | |
| 269 | 269 | $page = $oldrev->get_wikipage(); |
| 270 | 270 | $prj->inOr404($page); |
| 271 | 271 | if ($oldrev->is_head == true) { |
| 272 | | throw new Pluf_HTTP_Error404($request); |
| 272 | return new Pluf_HTTP_Response_NotFound($request); |
| 273 | 273 | } |
| 274 | 274 | if ($request->method == 'POST') { |
| 275 | 275 | $oldrev->delete(); |
| ... | ... | |
| 310 | 310 | array($prj->id, $match[2])); |
| 311 | 311 | $pages = Pluf::factory('IDF_WikiPage')->getList(array('filter'=>$sql->gen())); |
| 312 | 312 | if ($pages->count() != 1) { |
| 313 | | throw new Pluf_HTTP_Error404($request); |
| 313 | return new Pluf_HTTP_Response_NotFound($request); |
| 314 | 314 | } |
| 315 | 315 | $page = $pages[0]; |
| 316 | 316 | $title = sprintf(__('Update %s'), $page->title); |
Download the corresponding diff file