From 16da0abed8d1d8426ee34ae4c9c8be40a0a69c9b Mon Sep 17 00:00:00 2001 From: "Fedor A. Fetisov" Date: Mon, 11 Mar 2019 00:35:49 +0300 Subject: [PATCH] Fix generation of the 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 08af542..2980a28 100644 --- a/Plugin.php +++ b/Plugin.php @@ -92,7 +92,7 @@ class Plugin extends \Mibew\Plugin\AbstractPlugin implements \Mibew\Plugin\Plugi public function refreshButton(&$args) { $g = $args['asset_url_generator']; - $args['response']['load']['refresh'] = $g->generate($this->getFilesPath() . '/js/refresh.js', AssetUrlGeneratorInterface::ABSOLUTE_URL); + $args['response']['load']['refresh'] = $g->generate(str_replace(DIRECTORY_SEPARATOR, '/', $this->getFilesPath()) . '/js/refresh.js', AssetUrlGeneratorInterface::ABSOLUTE_URL); $args['response']['handlers'][] = 'refreshButton'; $args['response']['dependencies']['refreshButton'] = array('refresh'); $args['response']['data']['refreshButton'] = array('mode' => $this->mode, 'submode' => $this->submode);