浏览代码

Added validate to translate

philippe_mingo 23 年之前
父节点
当前提交
de9a130fc5
共有 2 个文件被更改,包括 2 次插入6 次删除
  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".
             " * SquirrelMail Configuration File\n".
             " * Created using the Administrator Plugin\n".
-            " */\n".
-            "GLOBAL \$version;\n" );
+            " */\n" );
 
 /*
 fwrite( $fp, 'GLOBAL ' );

+ 1 - 4
plugins/translate/options.php

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