summaryrefslogtreecommitdiffstats
path: root/templates/header.inc.php
diff options
context:
space:
mode:
authorPaul Arthur <paul.arthur@flowerysong.com>2013-05-30 15:19:39 -0400
committerPaul Arthur <paul.arthur@flowerysong.com>2013-05-30 15:22:09 -0400
commit66d907abaa0c578cd95a98f0ec7479f22a824fa5 (patch)
tree7ab65588e1b0ca8a11d743b27bc4730f03aa2e76 /templates/header.inc.php
parent7c39509f403fd4fb1ef2d5eb0b394e20da31ea9e (diff)
downloadampache-66d907abaa0c578cd95a98f0ec7479f22a824fa5.tar.gz
ampache-66d907abaa0c578cd95a98f0ec7479f22a824fa5.tar.bz2
ampache-66d907abaa0c578cd95a98f0ec7479f22a824fa5.zip
header template: fix <html> dir attribute
Diffstat (limited to 'templates/header.inc.php')
-rw-r--r--templates/header.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/header.inc.php b/templates/header.inc.php
index 3bc77dd1..ee19ae6b 100644
--- a/templates/header.inc.php
+++ b/templates/header.inc.php
@@ -27,7 +27,7 @@ $htmllang = str_replace("_","-",Config::get('lang'));
$location = get_location();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $htmllang; ?>" lang="<?php echo $htmllang; ?>" dir="<?php echo $dir;?>">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $htmllang; ?>" lang="<?php echo $htmllang; ?>" dir="<?php echo is_rtl(Config::get('lang')) ? 'rtl' : 'ltr';?>">
<head>
<link rel="shortcut icon" href="<?php echo $web_path; ?>/favicon.ico" />