1 | <?php |
||
2 | /* |
||
3 | You may not change or alter any portion of this comment or credits |
||
4 | of supporting developers from this source code or any supporting source code |
||
5 | which is considered copyrighted (c) material of the original comment or credit authors. |
||
6 | |||
7 | This program is distributed in the hope that it will be useful, |
||
8 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
||
10 | */ |
||
11 | /** |
||
12 | * wgSitenotice module for xoops |
||
13 | * |
||
14 | * @copyright XOOPS Project (https://xoops.org) |
||
15 | * @license GPL 2.0 or later |
||
16 | * @package wgsitenotice |
||
17 | * @since 1.0 |
||
18 | * @min_xoops 2.5.11 |
||
19 | * @author Goffy (xoops.wedega.com) - Email:<[email protected]> - Website:<https://xoops.wedega.com> |
||
20 | */ |
||
21 | |||
22 | /***************Blocks**************/ |
||
23 | |||
24 | /** |
||
25 | * @param $cats |
||
26 | * @return string |
||
27 | */ |
||
28 | function wgsitenotice_block_addCatSelect($cats) { |
||
29 | $cat_sql = ''; |
||
30 | if(\is_array($cats)) |
||
31 | { |
||
32 | $cat_sql = '('.current($cats); |
||
33 | \array_shift($cats); |
||
34 | foreach($cats as $cat) |
||
35 | { |
||
36 | $cat_sql .= ','.$cat; |
||
37 | } |
||
38 | $cat_sql .= ')'; |
||
39 | } |
||
40 | return $cat_sql; |
||
41 | } |
||
42 | |||
43 | function wgsitenotice_meta_keywords($content) |
||
44 | { |
||
45 | global $xoopsTpl, $xoTheme; |
||
46 | $myts = MyTextSanitizer::getInstance(); |
||
0 ignored issues
–
show
|
|||
47 | $content= $myts->undoHtmlSpecialChars($myts->displayTarea($content)); |
||
48 | if(isset($xoTheme) && \is_object($xoTheme)) { |
||
49 | $xoTheme->addMeta( 'meta', 'keywords', \strip_tags($content)); |
||
50 | } else { // Compatibility for old Xoops versions |
||
51 | $xoopsTpl->assign('xoops_meta_keywords', \strip_tags($content)); |
||
52 | } |
||
53 | } |
||
54 | |||
55 | function wgsitenotice_meta_description($content) |
||
56 | { |
||
57 | global $xoopsTpl, $xoTheme; |
||
58 | $myts = MyTextSanitizer::getInstance(); |
||
59 | $content = $myts->undoHtmlSpecialChars($myts->displayTarea($content)); |
||
60 | if(isset($xoTheme) && \is_object($xoTheme)) { |
||
61 | $xoTheme->addMeta( 'meta', 'description', \strip_tags($content)); |
||
62 | } else { // Compatibility for old Xoops versions |
||
63 | $xoopsTpl->assign('xoops_meta_description', \strip_tags($content)); |
||
64 | } |
||
65 | } |
||
66 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths