mirror of
https://github.com/Mibew/bulk-logs-operations-plugin.git
synced 2025-01-22 08:50:31 +03:00
Fix js url on non *nix systems
This commit is contained in:
parent
254d01111a
commit
81e1e76bbf
@ -40,7 +40,7 @@ class Plugin extends \Mibew\Plugin\AbstractPlugin implements \Mibew\Plugin\Plugi
|
|||||||
if (array_key_exists(SESSION_PREFIX . 'operator', $_SESSION)
|
if (array_key_exists(SESSION_PREFIX . 'operator', $_SESSION)
|
||||||
&& is_capable(CAN_ADMINISTRATE, operator_by_id($_SESSION[SESSION_PREFIX . 'operator']['operatorid']))) {
|
&& is_capable(CAN_ADMINISTRATE, operator_by_id($_SESSION[SESSION_PREFIX . 'operator']['operatorid']))) {
|
||||||
if (!strcmp('/operator/history', $args['request']->getPathInfo())) {
|
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';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user