From 585438a2f54902f8ed3d1e8c53eef491721878c4 Mon Sep 17 00:00:00 2001 From: "Fedor A. Fetisov" Date: Mon, 11 Mar 2019 18:43:26 +0300 Subject: [PATCH] Fix JS urls on non *nix systems --- Plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugin.php b/Plugin.php index 5493197..63fe969 100644 --- a/Plugin.php +++ b/Plugin.php @@ -107,7 +107,7 @@ class Plugin extends \Mibew\Plugin\AbstractPlugin implements \Mibew\Plugin\Plugi $need_chat_plugin = $this->needChatPlugin($args['request']); if ($need_users_plugin || $need_chat_plugin) { - $base_path = $this->getFilesPath(); + $base_path = str_replace(DIRECTORY_SEPARATOR, '/', $this->getFilesPath()); $args['js'][] = $base_path . '/vendor/jquery-titlealert/jquery.titlealert.js'; if ($need_users_plugin) {