summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/index.php b/index.php
index d08afa6ef..9d17da7bc 100644
--- a/index.php
+++ b/index.php
@@ -5,7 +5,7 @@
exit;
}
- set_include_path(get_include_path() . PATH_SEPARATOR .
+ set_include_path(get_include_path() . PATH_SEPARATOR .
dirname(__FILE__) ."/include");
require_once "functions.php";
@@ -40,6 +40,16 @@
<?php print_theme_includes($link) ?>
<?php print_user_stylesheet($link) ?>
+ <script type="text/javascript">
+ <?php foreach (explode(",", ARTICLE_BUTTON_PLUGINS) as $p) {
+ $jsf = "js/${p}_button.js";
+ if (file_exists($jsf)) {
+ include $jsf;
+ print "</script>";
+ }
+ } ?>
+ </script>
+
<link rel="shortcut icon" type="image/png" href="images/favicon.png"/>
<script type="text/javascript" src="lib/prototype.js"></script>