diff options
author | 2019-04-12 09:15:44 -0400 | |
---|---|---|
committer | 2019-04-12 09:15:44 -0400 | |
commit | b8796344f730bd3b23f6e248a2ad85244bff6d2e (patch) | |
tree | 57807bd11622b81fc7d67cc56d4ab525e1d3594f | |
parent | Fix compatibility with 1.31+ (diff) | |
download | skin-tyrian-b8796344f730bd3b23f6e248a2ad85244bff6d2e.tar.gz skin-tyrian-b8796344f730bd3b23f6e248a2ad85244bff6d2e.tar.bz2 skin-tyrian-b8796344f730bd3b23f6e248a2ad85244bff6d2e.zip |
Utilitze the ResourceLoader to create the script for bootstrap js
Signed-off-by: Brian Evans <grknight@gentoo.org>
-rw-r--r-- | TyrianTemplate.php | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/TyrianTemplate.php b/TyrianTemplate.php index 4a526ec..eb6b660 100644 --- a/TyrianTemplate.php +++ b/TyrianTemplate.php @@ -63,14 +63,9 @@ class TyrianTemplate extends BaseTemplate { </div> </div> - <?php $this->footer(); ?> - - <script> - window.RLQ = window.RLQ || []; window.RLQ.push( function () { - $.getScript("https://assets.gentoo.org/tyrian/bootstrap.min.js"); - } ); - </script> <?php + $this->footer(); + echo ResourceLoader::makeInlineScript('mw.loader.load("https://assets.gentoo.org/tyrian/bootstrap.min.js");'); $this->printTrail(); echo Html::closeElement( 'body' ); echo Html::closeElement( 'html' ); |