tmpl_var not filled with config.inc.php content

Discussion in 'Developers' Forum' started by cfoe, Aug 25, 2012.

  1. cfoe

    cfoe ISPConfig Developer ISPConfig Developer

    hi guys,

    in the "new" default theme I tried to fetch the language declaration for the html-tag from the main config (config.inc.php)

    <html dir="ltr" lang="<tmpl_var name="language">-<tmpl_var name="country">">

    language + country vars are not giving back the value of the var in the config.inc.php
    Other vars like <tmpl_var name="html_content_encoding"> work :confused:
    Any idea?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The default variables are filled in by the tpl defaults function in app.inc.php. Not all values from config.inc.php are filled in and not all shall be availabe, so take a look at the app.inc.php file to see which can be used in the theme. E.g. The language variable contains he language of the logged in user ant not the one from the global config.
     

Share This Page