From 785da9007ae76fa88b46c333cfbd3da78a7a26cc Mon Sep 17 00:00:00 2001 From: origami11 Date: Mon, 5 Jun 2017 15:50:19 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B0=D1=81=D1=82=D1=80=D0=BE=D0=B9?= =?UTF-8?q?=D0=BA=D0=B0=20=D0=BF=D1=83=D1=82=D0=B5=D0=B9=20=D0=BA=20=D1=81?= =?UTF-8?q?=D0=BA=D1=80=D0=B8=D0=BF=D1=82=D0=B0=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Controller/Component.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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) {