summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/index.php b/index.php
index 445a8fa75..d958e2b89 100644
--- a/index.php
+++ b/index.php
@@ -71,10 +71,11 @@
<?php
require 'lib/jsmin.php';
- foreach (explode(",", ARTICLE_BUTTON_PLUGINS) as $p) {
- $jsf = "js/".trim($p)."_button.js";
- if (file_exists($jsf)) {
- echo JSMin::minify(file_get_contents($jsf));
+ global $pluginhost;
+
+ foreach ($pluginhost->get_plugins() as $n => $p) {
+ if (method_exists($p, "get_js")) {
+ echo JSMin::minify($p->get_js());
}
}