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);␊ |
throw 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_Error404($request);␊ |
throw new Pluf_HTTP_Response_NotFound($request);␊ |
}␊ |
}␊ |
$ptags = self::getWikiTags($prj);␊ |