Skip to content
This repository was archived by the owner on Sep 19, 2022. It is now read-only.

Commit 880956a

Browse files
melangervyskocilpavel
authored andcommitted
use chartjs from composer
1 parent deddb85 commit 880956a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"simplesamlphp/simplesamlphp": "~1.17",
2424
"simplesamlphp/composer-module-installer": "~1.0",
2525
"cesnet/simplesamlphp-module-perunauthorize": "~2.0",
26+
"cesnet/simplesamlphp-module-chartjs": "~2.8.0",
2627
"ext-curl": "*",
2728
"ext-json": "*"
2829
}

templates/listOfSps-tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,6 @@ function getClass($attribute)
212212

213213
?>
214214

215-
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.3/Chart.bundle.js"></script>
215+
<script src="<?php echo htmlspecialchars(\SimpleSAML\Module::getModuleURL('chartjs/Chart.bundle.min.js'));?>"></script>
216216

217217
<script src="<?php echo htmlspecialchars(\SimpleSAML\Module::getModuleURL('perun/listOfSps.js'));?>"></script>

0 commit comments

Comments
 (0)