HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Developers' Forum (http://www.howtoforge.com/forums/forumdisplay.php?f=33)
-   -   tmpl_var not filled with config.inc.php content (http://www.howtoforge.com/forums/showthread.php?t=58381)

cfoe 25th August 2012 16:54

tmpl_var not filled with config.inc.php content
 
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?

till 26th August 2012 13:09

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.


All times are GMT +2. The time now is 20:28.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.