Browse Source

Passage de phpcs

master
Matthieu Marcillaud 4 months ago
parent
commit
6481d35329
  1. 1
      engine/textwheelrule.php
  2. 2
      inc/autoliens.php

1
engine/textwheelrule.php

@ -23,7 +23,6 @@ if (!defined('_ECRIRE_INC_VERSION')) {
}
class TextWheelRule {
## rule description
# optional
public $priority = 0; # rule priority (rules are applied in ascending order)

2
inc/autoliens.php

@ -38,7 +38,7 @@ function tw_traiter_autoliens($r) {
preg_match('/^(.*?)([,.;?|]?)$/', $l, $k);
$url = $protocol . '://' . $k[1];
// si l'original ne contenait pas le 'http:' on le supprime du clic
$url_echap = echappe_html("<html>". ($m ? $url : substr($url, strlen('http://'))) ."</html>");
$url_echap = echappe_html('<html>' . ($m ? $url : substr($url, strlen('http://'))) . '</html>');
$class = 'spip_url';

Loading…
Cancel
Save