]> git.wh0rd.org - tt-rss.git/commitdiff
fix theme changing with non-english translation (closes #209)
authorAndrew Dolgov <fox@bah.spb.su>
Fri, 23 May 2008 10:50:31 +0000 (11:50 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Fri, 23 May 2008 10:50:31 +0000 (11:50 +0100)
modules/pref-prefs.php

index 64d7cf6af930a693d939f17c3199db4ac4a412ef..cf3d3aee20e5d8a9ef101b5b939f1ff2e6219d5b 100644 (file)
 
                        return;
 
-               } else if ($subop == __("Change theme")) {
+               } else if ($subop == "change-theme") {
 
                        $theme = db_escape_string($_POST["theme"]);
 
                                print "</select></td></tr>";
                                print "</table>";
                                print "<input type=\"hidden\" name=\"op\" value=\"pref-prefs\">";
-                               print "<input type=\"hidden\" name=\"subop\" value=\"Change theme\">";
+                               print "<input type=\"hidden\" name=\"subop\" value=\"change-theme\">";
                                print "<p><input class=\"button\" type=\"submit\" 
                                        value=\"".__('Change theme')."\">";
                                print "</form>";