whitespace
authorLupin <lupin-wp@users.mediawiki.org>
Mon, 6 Mar 2006 04:20:20 +0000 (04:20 +0000)
committerLupin <lupin-wp@users.mediawiki.org>
Mon, 6 Mar 2006 04:20:20 +0000 (04:20 +0000)
includes/DatabasePostgreSQL.php
includes/SpecialPreferences.php
includes/SpecialUpload.php
includes/ZhClient.php

index d984b2e..5dfda70 100644 (file)
@@ -120,7 +120,7 @@ class DatabasePgsql extends Database {
 
        function fetchRow( $res ) {
                @$row = pg_fetch_array( $res );
-                if( pg_last_error($this->mConn) ) {
+               if( pg_last_error($this->mConn) ) {
                         wfDebugDieBacktrace( 'SQL error: ' . htmlspecialchars( pg_last_error($this->mConn) ) );
                 }
                return $row;
index 14ad7bd..ff118f7 100644 (file)
@@ -656,7 +656,7 @@ class PreferencesForm {
 
                # <FIXME>
                # Enotif
-                if ($wgEnableEmail) {
+               if ($wgEnableEmail) {
                        $wgOut->addHTML( '<fieldset><legend>' . wfMsg( 'email' ) . '</legend>' );
                         $wgOut->addHTML(
                                 $emailauthenticated.
index 8ca7657..70920a7 100644 (file)
@@ -620,9 +620,9 @@ class UploadForm {
                </tr>
                <tr>" );
 
-       if ( $licenseshtml != '' ) {
-               global $wgStylePath;
-               $wgOut->addHTML( "
+               if ( $licenseshtml != '' ) {
+                       global $wgStylePath;
+                       $wgOut->addHTML( "
                        <td align='right'><label for='wpLicense'>$license:</label></td>
                        <td align='left'>
                                <script type='text/javascript' src=\"$wgStylePath/common/upload.js\"></script>
@@ -635,15 +635,15 @@ class UploadForm {
                        </tr>
                        <tr>
                ");
-       }
-
-       if ( $wgUseCopyrightUpload ) {
-               $filestatus = wfMsgHtml ( 'filestatus' );
-               $copystatus =  htmlspecialchars( $this->mUploadCopyStatus );
-               $filesource = wfMsgHtml ( 'filesource' );
-               $uploadsource = htmlspecialchars( $this->mUploadSource );
+               }
 
-               $wgOut->addHTML( "
+               if ( $wgUseCopyrightUpload ) {
+                       $filestatus = wfMsgHtml ( 'filestatus' );
+                       $copystatus =  htmlspecialchars( $this->mUploadCopyStatus );
+                       $filesource = wfMsgHtml ( 'filesource' );
+                       $uploadsource = htmlspecialchars( $this->mUploadSource );
+                       
+                       $wgOut->addHTML( "
                                <td align='right' nowrap='nowrap'><label for='wpUploadCopyStatus'>$filestatus:</label></td>
                                <td><input tabindex='5' type='text' name='wpUploadCopyStatus' id='wpUploadCopyStatus' value=\"$copystatus\" size='40' /></td>
                        </tr>
@@ -653,10 +653,10 @@ class UploadForm {
                        </tr>
                        <tr>
                ");
-       }
+               }
 
 
-       $wgOut->addHtml( "
+               $wgOut->addHtml( "
                <td></td>
                <td>
                        <input tabindex='7' type='checkbox' name='wpWatchthis' id='wpWatchthis' $watchChecked value='true' />
@@ -677,8 +677,8 @@ class UploadForm {
                <td></td>
                <td align='left'>
                " );
-       $wgOut->addWikiText( wfMsgForContent( 'edittools' ) );
-       $wgOut->addHTML( "
+               $wgOut->addWikiText( wfMsgForContent( 'edittools' ) );
+               $wgOut->addHTML( "
                </td>
        </tr>
 
index 4ca4e1f..0451ce8 100644 (file)
@@ -119,7 +119,7 @@ class ZhClient {
                        $i+=$len;
                }
                return $ret;
-    }
+       }
        /**
         * Perform word segmentation
         *