{{anchor href="top"}}
Hits : **{{hits}}**
#||
||==Action: ~Rtl==
Current version: !!(red)**4.3 svn**!!
Credits: // ((user:EvaggelosBalaskas Evaggelos Balaskas)) //
Description: Trying to resolve ((http://bugs.wackowiki.org/view.php?id=267 bug 267))
|{{toc numerate="1"}} ||
||#
##~{{Rtl}}##
**~/actions/rtl.php**
%%(php)
<?php
// Evaggelos Balaskas 06.03.2009
if ( !isset( $_SESSION["rtl"] ) ) $_SESSION["rtl"] = "1";
else $_SESSION["rtl"] = 1;
?>
%%
**~/handlers/page/show.php**
line: 132 (wackowiki 5.1.0)
Before:
%%(php)
echo $data;
%%
After:
%%(php)
if ( !isset( $_SESSION["rtl"] ) ) $_SESSION["rtl"] = "0";
if ( $_SESSION["rtl"] ) { echo "<div dir=\"rtl\">"; }
echo $data;
if ( $_SESSION["rtl"] ) { echo "</div>"; $_SESSION["rtl"] = "0";}
%%
====Documentation==
Nothing here
====How to==
Just copy-paste
====To Do==
* find someone to test it with Right-to-left languages
{{backlinks}}