diff --git a/src/Controller/Component.php b/src/Controller/Component.php index 5d56d24..7115b22 100644 --- a/src/Controller/Component.php +++ b/src/Controller/Component.php @@ -318,11 +318,7 @@ class Controller_Component } function addRequireJsPath($name, $path, $shim = null) { - global $requireJsConfig; - $requireJsConfig['paths'][$name] = $path; - if ($shim) { - $requireJsConfig['shim'][$name] = $shim; - } + Controller_Site::addRequireJsPath($name, $path, $shim); } function actionIndex(/*.ComponentRequest.*/ $request) {