diff --git a/CHANGELOG.md b/CHANGELOG.md index 9946db9..8efe44f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,17 +5,21 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). -## [1.15.0] - 2026-10-06 +## [UNRELEASED] ### Added -- GLPI 12 compatibility +- Add Transifex translations link to README + +### Fixed -## Unreleased ## +- Login page CSS and JS URLs when the plugin is installed outside the GLPI root directory + +## [1.15.0] - 2026-10-06 ### Added -- Add Transifex translations link to README +- GLPI 12 compatibility ### Fixed diff --git a/inc/alert.class.php b/inc/alert.class.php index 3d7eb59..5449fe0 100644 --- a/inc/alert.class.php +++ b/inc/alert.class.php @@ -522,7 +522,7 @@ public static function displayOnCentral() public static function displayOnLogin() { - echo Html::css(Plugin::getPhpDir('news', false) . '/css/styles.css'); + echo Html::css('/plugins/news/css/styles.css'); echo "
"; self::displayAlerts(['show_only_login_alerts' => true]); echo '
'; @@ -585,7 +585,7 @@ public static function displayAlerts($params = []) echo ''; if ($p['show_only_login_alerts']) { - echo Html::script(Plugin::getPhpDir('news', false) . '/js/news.js'); + echo Html::script('/plugins/news/js/news.js'); } }