Indefero

Indefero Commit Details


Date:2009-07-02 12:59:06 (15 years 5 months ago)
Author:Loic d'Anterroches
Branch:develop, feature-issue_links, feature.better-home, feature.content-md5, feature.diff-whitespace, feature.download-md5, feature.issue-links, feature.issue-of-others, feature.issue-summary, feature.search-filter, feature.webrepos, feature.wiki-default-page, master, release-1.1, release-1.2, release-1.3
Commit:c488278ce1bac2a6adc83a77395b776126dbe212
Parents: ad17d797b2179603265b087fed5ecc39922fdd7b
Message:Fixed bad use of Exception in the wiki view.

Changes:

File differences

src/IDF/Views/Wiki.php
222222
223223
224224
225
225
226226
227227
228228
......
231231
232232
233233
234
234
235235
236236
237237
......
269269
270270
271271
272
272
273273
274274
275275
......
310310
311311
312312
313
313
314314
315315
316316
array($prj->id, $match[2]));
$pages = Pluf::factory('IDF_WikiPage')->getList(array('filter'=>$sql->gen()));
if ($pages->count() != 1) {
throw new Pluf_HTTP_Response_NotFound($request);
return new Pluf_HTTP_Response_NotFound($request);
}
$page = $pages[0];
$oldrev = false;
$oldrev = Pluf_Shortcuts_GetObjectOr404('IDF_WikiRevision',
$request->GET['rev']);
if ($oldrev->wikipage != $page->id or $oldrev->is_head == true) {
throw new Pluf_HTTP_Response_NotFound($request);
return new Pluf_HTTP_Response_NotFound($request);
}
}
$ptags = self::getWikiTags($prj);
$page = $oldrev->get_wikipage();
$prj->inOr404($page);
if ($oldrev->is_head == true) {
throw new Pluf_HTTP_Error404($request);
return new Pluf_HTTP_Response_NotFound($request);
}
if ($request->method == 'POST') {
$oldrev->delete();
array($prj->id, $match[2]));
$pages = Pluf::factory('IDF_WikiPage')->getList(array('filter'=>$sql->gen()));
if ($pages->count() != 1) {
throw new Pluf_HTTP_Error404($request);
return new Pluf_HTTP_Response_NotFound($request);
}
$page = $pages[0];
$title = sprintf(__('Update %s'), $page->title);

Archive Download the corresponding diff file

Page rendered in 0.07265s using 13 queries.