[geeklog-devel] Constant XHTML

Rouslan Placella rouslan at placella.com
Wed Mar 28 20:11:20 EDT 2012


On 28/03/12 21:15, Tom wrote:
> I notice while I had error reporting set to E_ALL that the constant XHTML is
> used in the languages files but has yet to be defined when the language
> files are included. XHTML is based on $_CONF['doctype'] and is defined after
> a themes function.php file is set. I assume this is done because a theme may
> want to reset this $_CONF['doctype'] value which affects what the XHTML
> constant is set for.
> 
> Does anyone see a problem of setting the language files after the theme and
> XHTML are set or was there a reason they are set before? (ie does a theme
> need access to the language files)

I recently did a change[0] to the order in which the language and the theme are loaded. I implmented
a new method for supporting RTL languages in the new theme since the professional_css theme had not
rtl support. The idea is to know which language is loaded before loading the theme, so that the
theme can be aware of the text direction. Could this be causing the problem that you found?

Bye,
Rouslan

[0]: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/048e06f372c9



More information about the geeklog-devel mailing list