fixed prefixed links (for arabic wikipedia)
[lhc/web/wiklou.git] / includes / SkinFramed.php
index cc18722..51bb929 100644 (file)
@@ -5,8 +5,8 @@ class SkinFramed extends Skin {
 
        function useBodyTag()
        {
-               global $frame;
-               return ( "set" != $frame );
+               global $wgRequest;
+               return ( "set" != $wgRequest->getText( 'frame' ) );
        }
 
        function qbSetting() { return 0; }
@@ -50,9 +50,10 @@ class SkinFramed extends Skin {
 
        function transformContent( $text )
        {
-               global $frame, $HTTP_SERVER_VARS;
+               global $wgRequest, $HTTP_SERVER_VARS;
                global $wgOut, $wgServer, $wgScript;
 
+               $frame = $wgRequest->getText( 'frame' );
                $qs = $HTTP_SERVER_VARS["QUERY_STRING"];
                $qs = wfEscapeHTML( $qs );