]> code.citadel.org Git - citadel.git/blobdiff - webcit/inetconf.c
* save_inetconf was clobbering the screen. Fixed it by registering it as an ordinary...
[citadel.git] / webcit / inetconf.c
index 5e0bd5b11403f45604577734de56451748c308ce..ee1daf4b11c91eaac5f98dd63d0e9bbfcabc9e65 100644 (file)
@@ -197,8 +197,8 @@ HashList *GetInetConfHash(StrBuf *Target, WCTemplputParams *TP)
 
        if (WCC->InetCfg == NULL)
                load_inetconf();
-       GetHash(WCC->InetCfg, TKEY(2), &vHash);
-       svprintf(HKEY("SERVCFG:INET:TYPE"), WCS_STRING, TP->Tokens->Params[2]->Start);
+       GetHash(WCC->InetCfg, TKEY(5), &vHash);
+       svprintf(HKEY("SERVCFG:INET:TYPE"), WCS_STRING, TP->Tokens->Params[5]->Start);
        return vHash;
 }
 
@@ -206,7 +206,7 @@ void
 InitModule_INETCONF
 (void)
 {
-       WebcitAddUrlHandler(HKEY("save_inetconf"), new_save_inetconf, AJAX);
+       WebcitAddUrlHandler(HKEY("save_inetconf"), new_save_inetconf, 0);
        RegisterIterator("SERVCFG:INET", 1, NULL, GetInetConfHash, InetCfgSubst, NULL, CTX_INETCFG, CTX_NONE, IT_NOFLAG);
        RegisterNamespace("SERVCFG:FLUSHINETCFG",0, 0, DeleteInetConfHash, CTX_NONE);
 }