diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php
index 47ac4f904..024ffb2e4 100644
--- a/views/bootstrap/class.Bootstrap.php
+++ b/views/bootstrap/class.Bootstrap.php
@@ -43,7 +43,7 @@ class SeedDMS_Bootstrap_Style extends SeedDMS_View_Common {
} /* }}} */
function htmlStartPage($title="", $bodyClass="") { /* {{{ */
- if(method_exists($this, 'css')) {
+ if(method_exists($this, 'js')) {
$csp_rules = "script-src 'self';"; // style-src 'self';";
foreach (array("X-WebKit-CSP", "X-Content-Security-Policy", "Content-Security-Policy") as $csp) {
header($csp . ": " . $csp_rules);
@@ -121,8 +121,8 @@ $(document).ready(function () {
//]]>
";
}
- if(method_exists($this, 'css'))
- echo ''."\n";
+ if(method_exists($this, 'js'))
+ echo ''."\n";
echo "