Commit ccb05e3b authored by Ad Schellevis's avatar Ad Schellevis

move system_get_language_code into head.inc

parent b4d06b80
<?php
function system_get_language_code() {
global $config;
// a language code, as per [RFC3066]
$language = $config['system']['language'];
$code = str_replace("_", "-", $language);
if (empty($code))
$code = "en-US"; // Set default code.
return $code;
}
$g['theme'] = get_current_theme();
$pagetitle = gentitle( $pgtitle );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment