@@ -63,10 +63,12 @@ |
||
63 | 63 | } |
64 | 64 | } |
65 | 65 | |
66 | - public function do($request) |
|
66 | + public function do { |
|
67 | + ($request) |
|
67 | 68 | { |
68 | 69 | if (Director::is_cli()) { |
69 | 70 | die('This needs to be run from the front-end.'); |
71 | + } |
|
70 | 72 | } |
71 | 73 | $code = $request->param('ID'); |
72 | 74 | $obj = $this->getFlushRecord($code); |