diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php
index 30e561d44..d9dc03ebc 100644
--- a/views/bootstrap/class.Bootstrap.php
+++ b/views/bootstrap/class.Bootstrap.php
@@ -19,6 +19,7 @@
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+use Seeddms\Seeddms\Utilities;
class SeedDMS_Theme_Style extends SeedDMS_View_Common {
/**
@@ -180,7 +181,7 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
} /* }}} */
function htmlAddJsHeader($script) { /* {{{ */
- $nonce = createNonce();
+ $nonce = Utilities::createNonce();
$this->nonces[] = $nonce;
$this->extraheader['js'] .= ''."\n";
} /* }}} */
diff --git a/views/bootstrap4/class.Bootstrap4.php b/views/bootstrap4/class.Bootstrap4.php
index 57a52d96a..4a9043612 100644
--- a/views/bootstrap4/class.Bootstrap4.php
+++ b/views/bootstrap4/class.Bootstrap4.php
@@ -19,6 +19,7 @@
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+use Seeddms\Seeddms\Utilities;
class SeedDMS_Theme_Style extends SeedDMS_View_Common {
/**
@@ -182,7 +183,7 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
} /* }}} */
function htmlAddJsHeader($script) { /* {{{ */
- $nonce = createNonce();
+ $nonce = Utilities::createNonce();
$this->nonces[] = $nonce;
$this->extraheader['js'] .= ''."\n";
} /* }}} */