|
Revision 595, 362 bytes
(checked in by fproulx, 8 years ago)
|
|
2005-04-28 Fran�ois Proulx <francois.proulx@…>
- SF.net missed one file again !
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 | <?php |
|---|
| 2 | require_once BASEPATH.'classes/Session.php'; |
|---|
| 3 | require_once BASEPATH.'classes/Locale.php'; |
|---|
| 4 | $session = new Session(); |
|---|
| 5 | |
|---|
| 6 | if (!empty ($_REQUEST['lang'])) |
|---|
| 7 | { |
|---|
| 8 | Locale::setCurrentLocale(Locale::getObject($_REQUEST['lang'])); |
|---|
| 9 | } |
|---|
| 10 | |
|---|
| 11 | $locale = Locale::getCurrentLocale(); |
|---|
| 12 | $locale_id = $locale->getId(); |
|---|
| 13 | if (isset ($smarty)) |
|---|
| 14 | { |
|---|
| 15 | $smarty->assign("lang_id", $locale_id); |
|---|
| 16 | } |
|---|
| 17 | |
|---|
| 18 | ?> |
|---|