From b62f3fbc2b6b74deb7b76cb2021c2a25d7edcbc3 Mon Sep 17 00:00:00 2001 From: "Fedor A. Fetisov" Date: Mon, 11 Mar 2019 18:04:08 +0300 Subject: [PATCH] Fix js url on non *nix systems --- Plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugin.php b/Plugin.php index fde792a..a3964a8 100644 --- a/Plugin.php +++ b/Plugin.php @@ -126,7 +126,7 @@ class Plugin extends \Mibew\Plugin\AbstractPlugin implements \Mibew\Plugin\Plugi { if ($this->checkAdmin()) { if (!strcmp('/operator/users', $args['request']->getPathInfo())) { - $args['js'][] = $this->getFilesPath() . '/js/broadcast.js'; + $args['js'][] = str_replace(DIRECTORY_SEPARATOR, '/', $this->getFilesPath()) . '/js/broadcast.js'; } } }