From 0350495d20de36594585fde07b1b76ad04cda736 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Wed, 20 Feb 2013 10:05:05 +1300 Subject: [PATCH] Fixing DocumentationViewer::handleAction() to work with SS 3.1 --- code/controllers/DocumentationViewer.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/controllers/DocumentationViewer.php b/code/controllers/DocumentationViewer.php index c14b7a0..0beef5d 100755 --- a/code/controllers/DocumentationViewer.php +++ b/code/controllers/DocumentationViewer.php @@ -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;