Hi
i have a front-page.tpl file that load external php files according to a click on some links.
it works great but one this: it is a multi language site. if i print $language->language on the front page it does change when i switch language. but on the loaded page it is always give me the same language.
so i need to pass the language variable to the external loaded page.
at the top of the external loaded page i have this:
chdir('/');
//require the bootstrap include
require_once '/includes/bootstrap.inc';
//load drupal
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
i thought that will give me access to the language variable cause with it i do query the database.
any idea?
Read »








