X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Finstaller%2FInstallDocFormatter.php;h=08cfd8689a76506ae7d6b06e15d10caf68b15d3e;hp=0d52e64da4af91af36c6e8b8b7b7b2109cb587b3;hb=9a37fb8e4851d13bfb208eb886c9947a7f21571c;hpb=96366c1cf1966ca07e8f0b4361bbca28bfaf43a0 diff --git a/includes/installer/InstallDocFormatter.php b/includes/installer/InstallDocFormatter.php index 0d52e64da4..08cfd8689a 100644 --- a/includes/installer/InstallDocFormatter.php +++ b/includes/installer/InstallDocFormatter.php @@ -21,7 +21,7 @@ */ class InstallDocFormatter { - static function format( $text ) { + public static function format( $text ) { $obj = new self( $text ); return $obj->execute(); @@ -34,8 +34,8 @@ class InstallDocFormatter { protected function execute() { $text = $this->text; // Use Unix line endings, escape some wikitext stuff - $text = str_replace( array( '<', '{{', '[[', '__', "\r" ), - array( '<', '{{', '[[', '__', '' ), $text ); + $text = str_replace( [ '<', '{{', '[[', '__', "\r" ], + [ '<', '{{', '[[', '__', '' ], $text ); // join word-wrapped lines into one do { $prev = $text;