From 81e1e76bbff32a33ca6d17fc5e505a3b4c6dbe16 Mon Sep 17 00:00:00 2001 From: "Fedor A. Fetisov" Date: Mon, 11 Mar 2019 18:07:41 +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 712c486..ff23a10 100644 --- a/Plugin.php +++ b/Plugin.php @@ -40,7 +40,7 @@ class Plugin extends \Mibew\Plugin\AbstractPlugin implements \Mibew\Plugin\Plugi if (array_key_exists(SESSION_PREFIX . 'operator', $_SESSION) && is_capable(CAN_ADMINISTRATE, operator_by_id($_SESSION[SESSION_PREFIX . 'operator']['operatorid']))) { if (!strcmp('/operator/history', $args['request']->getPathInfo())) { - $args['js'][] = $this->getFilesPath() . '/js/alter_form.js'; + $args['js'][] = str_replace(DIRECTORY_SEPARATOR, '/', $this->getFilesPath()) . '/js/alter_form.js'; } } }