Browse Source

Added validate to translate

philippe_mingo 23 years ago
parent
commit
de9a130fc5
2 changed files with 2 additions and 6 deletions
  1. 1 2
      plugins/administrator/options.php
  2. 1 4
      plugins/translate/options.php

+ 1 - 2
plugins/administrator/options.php

@@ -489,8 +489,7 @@ fwrite( $fp, "<?PHP\n".
             "/**\n".
             "/**\n".
             " * SquirrelMail Configuration File\n".
             " * SquirrelMail Configuration File\n".
             " * Created using the Administrator Plugin\n".
             " * Created using the Administrator Plugin\n".
-            " */\n".
-            "GLOBAL \$version;\n" );
+            " */\n" );
 
 
 /*
 /*
 fwrite( $fp, 'GLOBAL ' );
 fwrite( $fp, 'GLOBAL ' );

+ 1 - 4
plugins/translate/options.php

@@ -11,10 +11,7 @@
     */
     */
 
 
    chdir('..');
    chdir('..');
-
-   session_start();
-   
-   require_once('../config/config.php');
+   require_once('../src/validate.php');
    require_once('../functions/strings.php');
    require_once('../functions/strings.php');
    require_once('../functions/page_header.php');
    require_once('../functions/page_header.php');
    require_once('../functions/display_messages.php');
    require_once('../functions/display_messages.php');