mirror of
https://git.code.sf.net/p/seeddms/code
synced 2026-01-16 14:26:43 +00:00
use new class Utilities
This commit is contained in:
parent
2d963a3c6f
commit
220b633e4c
|
|
@ -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'] .= '<script type="text/javascript" src="'.$script.'" nonce="'.$nonce.'"></script>'."\n";
|
||||
} /* }}} */
|
||||
|
|
|
|||
|
|
@ -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'] .= '<script type="text/javascript" src="'.$script.'" nonce="'.$nonce.'"></script>'."\n";
|
||||
} /* }}} */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user