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 1212
1313use Joomla \CMS \Component \ComponentHelper ;
1414use Joomla \CMS \MVC \Controller \ApiController ;
15+ use Joomla \CMS \MVC \Controller \Exception \ResourceNotFound ;
1516use Tobscure \JsonApi \Exception \InvalidParameterException ;
1617
1718abstract class BaseController extends ApiController
@@ -30,7 +31,7 @@ protected function validateUpdateToken(): void
3031 $ config = ComponentHelper::getParams ('com_joomlaupdate ' );
3132
3233 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 );
3435 }
3536
3637 $ token = $ this ->input ->server ->get ('HTTP_X_JUPDATE_TOKEN ' , '' , 'STRING ' );
You can’t perform that action at this time.
0 commit comments