X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Finstaller%2FInstallDocFormatter.php;h=08cfd8689a76506ae7d6b06e15d10caf68b15d3e;hb=de374ac282c66e0141ea5c9979130e80a69b9f28;hp=0d52e64da4af91af36c6e8b8b7b7b2109cb587b3;hpb=44aec8a00a9f0f92a746ca575b58147fea1135e5;p=lhc%2Fweb%2Fwiklou.git 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;