Fix js url on non *nix systems

This commit is contained in:
Fedor A. Fetisov 2019-03-11 18:04:08 +03:00
parent f6b19dce84
commit b62f3fbc2b

View File

@ -126,7 +126,7 @@ class Plugin extends \Mibew\Plugin\AbstractPlugin implements \Mibew\Plugin\Plugi
{ {
if ($this->checkAdmin()) { if ($this->checkAdmin()) {
if (!strcmp('/operator/users', $args['request']->getPathInfo())) { 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';
} }
} }
} }