mirror of
https://github.com/silverstripe/silverstripe-docsviewer
synced 2024-10-22 11:05:56 +02:00
Fixing DocumentationViewer::handleAction() to work with SS 3.1
This commit is contained in:
parent
3b27cd6b2b
commit
0350495d20
@ -127,13 +127,13 @@ class DocumentationViewer extends Controller {
|
|||||||
* this controller are virtual and handled through handleRequest(), not
|
* this controller are virtual and handled through handleRequest(), not
|
||||||
* controller methods.
|
* controller methods.
|
||||||
*
|
*
|
||||||
* @param SS_HTTPRequest
|
* @param $request
|
||||||
*
|
* @param $action
|
||||||
* @return SS_HTTPResponse
|
* @return SS_HTTPResponse
|
||||||
*/
|
*/
|
||||||
public function handleAction($request) {
|
public function handleAction($request, $action) {
|
||||||
try {
|
try {
|
||||||
$response = parent::handleAction($request);
|
$response = parent::handleAction($request, $action);
|
||||||
} catch(SS_HTTPResponse_Exception $e) {
|
} catch(SS_HTTPResponse_Exception $e) {
|
||||||
if(strpos($e->getMessage(), 'does not exist') !== FALSE) {
|
if(strpos($e->getMessage(), 'does not exist') !== FALSE) {
|
||||||
return $this;
|
return $this;
|
||||||
|
Loading…
Reference in New Issue
Block a user