diff options
Diffstat (limited to '404.php')
-rw-r--r-- | 404.php | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -4,10 +4,11 @@ define('ALIGNMENT', 'Center'); require 'langs.php'; // needs absolute path in some form to be link depth independent $locale = ($locale == '404.php' ? 'en' : $locale); $dictionary = read_translation_file($locale, array('404', 'common_footer')); +$rtl = is_locale_rtl($locale); header('HTTP/1.0 404 Not Found'); header('Status: 404 Not Found'); ?><!DOCTYPE html> -<html dir="ltr" lang="<?php echo $locale; ?>"> +<html <?php echo $rtl ? 'dir="rtl"' : 'dir="ltr"'?> lang="<?php echo $locale; ?>"> <head> <meta charset="utf-8"> <title><?php _g('Sorry, we could not find this page.')?></title> @@ -17,7 +18,7 @@ header('Status: 404 Not Found'); <?php echo common_header(); ?> <?php include 'analytics.php'; ?> </head> -<body> +<body<?php echo $rtl ? ' style="text-align: right;"' : ''?>> <?php echo $hsnav; ?> <h1 id="mgnavt"><?php _g('Sorry, we could not find this page.')?></h1> <div id="doc" class="yui-t7" style="margin-bottom: 0px;"> |