el_to should be varchar in oracle
[lhc/web/wiklou.git] / maintenance / rebuildInterwiki.php
index d2add0b..b3656bb 100644 (file)
@@ -1,19 +1,24 @@
-<?
+<?php
+/**
+ * Rebuild interwiki table using the file on meta and the language list
+ * Wikimedia specific!
+ * @todo document
+ * @addtogroup Maintenance
+ */
 
-# Rebuild interwiki table using the file on meta and the language list
-# Wikimedia specific!
+/** */
 $oldCwd = getcwd();
 
 $optionsWithArgs = array( "o" );
 include_once( "commandLine.inc" );
 include_once( "rebuildInterwiki.inc" );
+chdir( $oldCwd );
 
 $sql = getRebuildInterwikiSQL();
 
 # Output
-if ( isset( $options['o'] ) ) {        
+if ( isset( $options['o'] ) ) {
        # To file specified with -o
-       chdir( $oldCwd );
        $file = fopen( $options['o'], "w" );
        fwrite( $file, $sql );
        fclose( $file );