* is_mobile evaluation is wrong here, since we're -1 or 0 if not / undetected; so...
authorWilfried Göesgens <willi@citadel.org>
Fri, 1 Jan 2010 15:39:28 +0000 (15:39 +0000)
committerWilfried Göesgens <willi@citadel.org>
Fri, 1 Jan 2010 15:39:28 +0000 (15:39 +0000)
webcit/roomops.c
webcit/subst.c

index a60efb03efe126071902521b440236bc56f1139f..d3dab03892f2a8396169f7bc040a53e749f83e37 100644 (file)
@@ -475,7 +475,7 @@ void embed_room_banner(char *got, int navbar_style) {
  
        do_template("roombanner", NULL);
        /* roombanner contains this for mobile */
-       if (navbar_style != navbar_none && !WC->is_mobile) { 
+       if (navbar_style != navbar_none && (WC->is_mobile < 1)) { 
 
                wc_printf("<div id=\"navbar\"><ul>");
 
index ecfa4a70ceaba7ff43ccf763e57bb2d939271f75..31be4b4a8a016399b0b8da15ee98caf110367ce4 100644 (file)
@@ -1961,7 +1961,7 @@ const StrBuf *DoTemplate(const char *templatename, long len, StrBuf *Target, WCT
                TP = &LocalTP;
        }
 
-       if (WC->is_mobile) {
+       if (WC->is_mobile > 0) {
                Static = WirelessTemplateCache;
                StaticLocal = WirelessLocalTemplateCache;
        }