File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
api/components/com_joomlaupdate/src/Controller Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 12
12
13
13
use Joomla \CMS \Component \ComponentHelper ;
14
14
use Joomla \CMS \MVC \Controller \ApiController ;
15
+ use Joomla \CMS \MVC \Controller \Exception \ResourceNotFound ;
15
16
use Tobscure \JsonApi \Exception \InvalidParameterException ;
16
17
17
18
abstract class BaseController extends ApiController
@@ -30,7 +31,7 @@ protected function validateUpdateToken(): void
30
31
$ config = ComponentHelper::getParams ('com_joomlaupdate ' );
31
32
32
33
if ($ config ->get ('updatesource ' ) !== 'default ' || (int ) $ config ->get ('minimum_stability ' ) !== 4 || !$ config ->get ('autoupdate ' )) {
33
- throw new \ RuntimeException ('Auto update is disabled ' , 404 );
34
+ throw new ResourceNotFound ('Auto update is disabled ' , 404 );
34
35
}
35
36
36
37
$ token = $ this ->input ->server ->get ('HTTP_X_JUPDATE_TOKEN ' , '' , 'STRING ' );
You can’t perform that action at this time.
0 commit comments