summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/general.lib.php8
-rw-r--r--stream.php1
-rw-r--r--templates/header.inc.php3
3 files changed, 11 insertions, 1 deletions
diff --git a/lib/general.lib.php b/lib/general.lib.php
index 13b9d1b6..73f488bb 100644
--- a/lib/general.lib.php
+++ b/lib/general.lib.php
@@ -349,6 +349,14 @@ function get_languages() {
} // get_languages
/**
+ * is_rtl
+ * This checks whether to be a rtl language.
+ */
+function is_rtl($locale) {
+ return in_array($locale, array("he_IL", "fa_IR", "ar_SA"));
+}
+
+/**
* format_time
* This formats seconds into minutes:seconds
* //FIXME This should be removed, no reason for it!
diff --git a/stream.php b/stream.php
index ff92a308..e1a65585 100644
--- a/stream.php
+++ b/stream.php
@@ -160,6 +160,7 @@ switch ($_REQUEST['method']) {
}
/* Start the Stream */
+ debug_event('stream.php' , 'Stream Type: '.$stream_type.' Media IDs: '.$media_ids, '5');
$stream = new Stream($stream_type,$media_ids);
$stream->add_urls($urls);
$stream->start();
diff --git a/templates/header.inc.php b/templates/header.inc.php
index 5fb07994..1566aa44 100644
--- a/templates/header.inc.php
+++ b/templates/header.inc.php
@@ -24,9 +24,10 @@ if (INIT_LOADED != '1') { exit; }
$web_path = Config::get('web_path');
$htmllang = str_replace("_","-",Config::get('lang'));
$location = get_location();
+$dir = is_rtl() ? "rtl" : "ltr";
?>
<!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; ?>">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $htmllang; ?>" lang="<?php echo $htmllang; ?>" dir="<?php echo $dir;?>">
<head>
<link rel="shortcut icon" href="<?php echo $web_path; ?>/favicon.ico" />