Use HTML instead of EOT to delimit heredocs
authorAryeh Gregor <simetrical@users.mediawiki.org>
Fri, 5 Feb 2010 02:12:01 +0000 (02:12 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Fri, 5 Feb 2010 02:12:01 +0000 (02:12 +0000)
This makes vim highlight the fragment as HTML.

config/Installer.php

index dfcb794..5016212 100644 (file)
@@ -1736,7 +1736,7 @@ window.onload = toggleDBarea( <?php echo Xml::encodeJsVar( $conf->DBtype ); ?>,
 function writeSuccessMessage() {
  $script = defined('MW_INSTALL_PHP5_EXT') ? 'index.php5' : 'index.php';
        if ( wfIniGetBool( 'safe_mode' ) && !ini_get( 'open_basedir' ) ) {
-               echo <<<EOT
+               echo <<<HTML
 <div class="success-box">
 <p>Installation successful!</p>
 <p>To complete the installation, please do the following:
@@ -1751,9 +1751,9 @@ remotely. LocalSettings.php is currently owned by the user your webserver is run
 which means that anyone on the same server can read your database password! Downloading
 it and uploading it again will hopefully change the ownership to a user ID specific to you.</p>
 </div>
-EOT;
+HTML;
        } else {
-               echo <<<EOT
+               echo <<<HTML
 <div class="success-box">
 <p>
 <span class="success-message">Installation successful!</span>
@@ -1762,7 +1762,7 @@ Move the <tt>config/LocalSettings.php</tt> file to the parent directory, then fo
 <p>You should change file permissions for <tt>LocalSettings.php</tt> as required to
 prevent other users on the server reading passwords and altering configuration data.</p>
 </div>
-EOT;
+HTML;
        }
 }