Fixing DocumentationViewer::handleAction() to work with SS 3.1

This commit is contained in:
Sean Harvey 2013-02-20 10:05:05 +13:00
parent 3b27cd6b2b
commit 0350495d20

View File

@ -127,13 +127,13 @@ class DocumentationViewer extends Controller {
* this controller are virtual and handled through handleRequest(), not
* controller methods.
*
* @param SS_HTTPRequest
*
* @param $request
* @param $action
* @return SS_HTTPResponse
*/
public function handleAction($request) {
public function handleAction($request, $action) {
try {
$response = parent::handleAction($request);
$response = parent::handleAction($request, $action);
} catch(SS_HTTPResponse_Exception $e) {
if(strpos($e->getMessage(), 'does not exist') !== FALSE) {
return $this;