]> git.wh0rd.org Git - tt-rss.git/commitdiff
prepare login redirect for mobile/classic
authorAndrew Dolgov <fox@bah.org.ru>
Mon, 21 Dec 2009 13:33:27 +0000 (16:33 +0300)
committerAndrew Dolgov <fox@bah.org.ru>
Mon, 21 Dec 2009 13:33:27 +0000 (16:33 +0300)
functions.php

index 9fba3c83c9f9af4aa9fe35f64eb31bd57bee0d65..08b4c4b810501437ca942c7c8763f67367c12fc7 100644 (file)
                return true;
        }
 
-       function render_login_form($link, $mobile = false) {
-               if (!$mobile) {
+       function render_login_form($link, $mobile = 0) {
+               switch ($mobile) {
+               case 0:
                        require_once "login_form.php";
-               } else {
+                       break;
+               case 1:
                        require_once "mobile/login_form.php";
+                       break;
+               case 2:
+                       require_once "mobile/classic/login_form.php";
                }
        }