Fix JS urls on non *nix systems

This commit is contained in:
Fedor A. Fetisov 2019-03-11 18:43:26 +03:00
parent c6de6fd33e
commit 585438a2f5

View File

@ -107,7 +107,7 @@ class Plugin extends \Mibew\Plugin\AbstractPlugin implements \Mibew\Plugin\Plugi
$need_chat_plugin = $this->needChatPlugin($args['request']); $need_chat_plugin = $this->needChatPlugin($args['request']);
if ($need_users_plugin || $need_chat_plugin) { 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'; $args['js'][] = $base_path . '/vendor/jquery-titlealert/jquery.titlealert.js';
if ($need_users_plugin) { if ($need_users_plugin) {