MyBB Community Forums

Full Version: RTL bug not working
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

The language pack is already set to "RTL", everything is working writing text is already in RTL but the view is not set to RTL.

I have a workaround which is weird on "inc/class_language.php" line 110 I insert a code
110 echo '<div style="display:none;">'.$this->settings['rtl'].'</div>';

Now RTL view is working, but it has problem on submitting data as it does not proceed due to this echo so I need to remove it. So how can I fix this one? Is it an existing issue that needs to address?

Whole code below "inc/class_language.php"

101		// Check if the language exists.
102		if(!$this->language_exists($language))
103		{
104			die("Language $language ($this->path/$language) is not installed");
105		}
106
107		$this->language = $language;
108		require $this->path."/".$language.".php";
109		$this->settings = $langinfo;
110		echo '<div style="display:none;">'.$this->settings['rtl'].'</div>';
111		// Load the admin language files as well, if needed.
112		if($area == "admin")