Installer: fixed load of lang_js on finish
authorDan
Mon, 02 Mar 2009 16:45:28 -0500
changeset 850 ccedb36dd929
parent 849 0617ae60cb89
child 851 b98798f6572d
Installer: fixed load of lang_js on finish
install/install.php
--- a/install/install.php	Sun Mar 01 22:52:31 2009 -0500
+++ b/install/install.php	Mon Mar 02 16:45:28 2009 -0500
@@ -18,7 +18,12 @@
 
 define('IN_ENANO', 1);
 // DEFINE THIS BEFORE RELEASE!
-define('ENANO_DANGEROUS', 1);
+$dangerous = true;
+if ( !empty($_GET['do']) )
+  if ( $_GET['do'] === 'lang_js' )
+    $dangerous = false;
+if ( $dangerous )
+  define('ENANO_DANGEROUS', 1);
 
 require_once('includes/common.php');
 @ini_set('display_errors', 'on');