Show
Ignore:
Timestamp:
10/13/2007 01:02:31 PM (14 months ago)
Author:
Geert
Message:

Fixing doctype language in user guide's template. It may not be a superclean solution, but at least it works.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/modules/user_guide/views/user_guide/template.php

    r687 r808  
    1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//<?php echo strtoupper(Config::item('core.locale')) ?>" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
    2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo Config::item('core.locale') ?>" lang="<?php echo Config::item('core.locale') ?>"> 
     1<?php 
     2 
     3$lang = substr(Config::item('core.locale'), 0, 2); 
     4 
     5?> 
     6<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//<?php echo strtoupper($lang) ?>" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
     7<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $lang ?>" lang="<?php echo $lang ?>"> 
    38<head> 
    49<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>