e107inc/e107

View on GitHub
gsitemap.php

Summary

Maintainability
A
0 mins
Test Coverage
F
33%

Suspicious array access to ?mixed
Open

                  <changefreq>".$sm[$prefix.'freq']."</changefreq>
Severity: Minor
Found in gsitemap.php by phan

Suspicious array access to ?mixed
Open

                <lastmod>".date('c', (int) $sm[$prefix.'lastmod'])."</lastmod>
Severity: Minor
Found in gsitemap.php by phan

Argument 2 (mode) is true but \e_parse::replaceConstants() takes string defined at /code/e107_handlers/e_parse_class.php:3025
Open

                $imgUrl = (strpos($imgUrl, 'http') === 0) ? $imgUrl : SITEURL.$tp->replaceConstants($imgUrl,true);
Severity: Minor
Found in gsitemap.php by phan

Argument 2 (mode) is true but \e_parse::replaceConstants() takes string defined at /code/e107_handlers/e_parse_class.php:3025
Open

        $url = (substr($nfa['gsitemap_url'],0,4)== "http")? $nfa['gsitemap_url'] : SITEURL.$tp->replaceConstants($nfa['gsitemap_url'],TRUE);
Severity: Minor
Found in gsitemap.php by phan

Argument 2 (parseBB) is '' but \e_parse::toHTML() takes bool|false defined at /code/e107_handlers/e_parse_class.php:1532
Open

        $text .= "<li>".$tp->toHTML($nfa['gsitemap_cat'],"","defs").": <a href='".$url."'>".$tp->toHTML($nfa['gsitemap_name'],"","defs")."</a></li>\n";
Severity: Minor
Found in gsitemap.php by phan

Argument 2 (mode) is true but \e_parse::replaceConstants() takes string defined at /code/e107_handlers/e_parse_class.php:3025
Open

            $loc = (strpos($url, 'http') === 0) ? $url : SITEURL.$tp->replaceConstants($url,true);
Severity: Minor
Found in gsitemap.php by phan

Suspicious array access to ?mixed
Open

                  <priority>".$sm[$prefix.'priority']."</priority>
Severity: Minor
Found in gsitemap.php by phan

There are no issues that match your filters.

Category
Status