| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | function smarty_compiler_xoappurl($params, $smarty) |
||
|
|
|||
| 32 | { |
||
| 33 | global $xoops; |
||
| 34 | $arg = reset($params); |
||
| 35 | $url = trim($arg, " '\"\t\n\r\0\x0B"); |
||
| 36 | |||
| 37 | if (strpos($url, '/') === 0) { |
||
| 38 | $url = 'www' . $url; |
||
| 39 | } |
||
| 40 | return "<?php echo '" . addslashes(htmlspecialchars($xoops->url($url), ENT_QUOTES | ENT_HTML5)) . "'; ?>"; |
||
| 41 | } |
||
| 42 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.