diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-08-05 23:45:15 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-08-05 23:45:15 -0400 |
commit | 4c8dfadf2d11373d9518fea94a05d4a04f74589e (patch) | |
tree | 2628bf432ac23b20f322db40f038a02bbddbd368 /index.php | |
parent | 120970434e01be250f643df79bda21169060fb6e (diff) |
make init of lang environment happen earlier, or when user language may have changed
darcs-hash:20080806034515-84dde-e32cbfec2890f50b610d0441659180038b060473.gz
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -22,6 +22,14 @@ define('LACONICA', true); require_once(INSTALLDIR . "/lib/common.php"); +# get and cache current user + +$user = common_current_user(); + +# initialize language env + +common_init_language(); + $action = $_REQUEST['action']; if (!$action || !preg_match('/^[a-zA-Z0-9_-]*$/', $action)) { |