Issues (3083)

htdocs/themes/xbootstrap/theme_autorun.php (3 issues)

Severity
1
<?php
2
xoops_load('XoopsFormRendererBootstrap3');
3
XoopsFormRenderer::getInstance()->set(new XoopsFormRendererBootstrap3());
4
5
/* Check if tinyMce 5 is seleected in system configuration */
6
$editor = xoops_getModuleOption('blocks_editor', 'system');
0 ignored issues
show
Deprecated Code introduced by
The function xoops_getModuleOption() has been deprecated. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

6
$editor = /** @scrutinizer ignore-deprecated */ xoops_getModuleOption('blocks_editor', 'system');
Loading history...
7
if ($editor != 'tinymce5') {
8
    $editor = xoops_getModuleOption('comments_editor', 'system');
0 ignored issues
show
Deprecated Code introduced by
The function xoops_getModuleOption() has been deprecated. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

8
    $editor = /** @scrutinizer ignore-deprecated */ xoops_getModuleOption('comments_editor', 'system');
Loading history...
9
    if ($editor != 'tinymce5') {
10
        $editor = xoops_getModuleOption('general_editor', 'system');
0 ignored issues
show
Deprecated Code introduced by
The function xoops_getModuleOption() has been deprecated. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

10
        $editor = /** @scrutinizer ignore-deprecated */ xoops_getModuleOption('general_editor', 'system');
Loading history...
11
    }
12
}
13
if ($editor == 'tinymce5') {
14
    $GLOBALS['xoTheme']->addStylesheet( XOOPS_URL . '/class/xoopseditor/tinymce5/tinymce5/jscripts/tiny_mce/plugins/xoopscode/css/prism.css' );
15
    $GLOBALS['xoTheme']->addScript( XOOPS_URL . '/class/xoopseditor/tinymce5/tinymce5/jscripts/tiny_mce/plugins/xoopscode/js/prism.js' );
16
}
17