The 'gotofirst' key is now called 'go' for brevity
authorArt Cancro <ajc@citadel.org>
Fri, 7 Jan 2011 19:34:43 +0000 (14:34 -0500)
committerWilfried Goesgens <dothebart@citadel.org>
Sun, 4 Sep 2011 13:41:44 +0000 (13:41 +0000)
webcit/auth.c
webcit/blogview_renderer.c
webcit/calendar_view.c
webcit/feed_generator.c
webcit/sitemap.c
webcit/webcit.c

index 653f0a3d6ca22217cf61c55925e56b71b05e3cf3..4d90105524f96d933b3bd3d9080febf30c2bc296 100644 (file)
@@ -803,7 +803,7 @@ void display_reg(int during_login)
        }
        else {
                StrBuf *ReturnTo;
-               ReturnTo = NewStrBufPlain(HKEY("display_main_menu?gotofirst="));
+               ReturnTo = NewStrBufPlain(HKEY("display_main_menu?go="));
                StrBufAppendBuf(ReturnTo, WC->CurRoom.name, 0);
                do_edit_vcard(vcard_msgnum, "1", VCMsg, VCAtt, ChrPtr(ReturnTo), USERCONFIGROOM);
                FreeStrBuf(&ReturnTo);
index 5da977ba3cf7152d9fe73b63e4e491bbd7fd79d2..d9df71bea568c3503d62fbaf38468efc3bb37939 100644 (file)
@@ -53,7 +53,7 @@ void blogpost_render_and_destroy(struct blogpost *bp) {
 
                if (p == 0) {
                        /* Show the number of comments */
-                       wc_printf("<a href=\"readfwd?p=%d?gotofirst=", bp->top_level_id);
+                       wc_printf("<a href=\"readfwd?p=%d?go=", bp->top_level_id);
                        urlescputs(ChrPtr(WC->CurRoom.name));
                        wc_printf("#comments\">");
                        wc_printf(_("%d comments"), bp->num_msgs - 1);
@@ -245,7 +245,7 @@ void tmplput_blog_permalink(StrBuf *Target, WCTemplputParams *TP) {
        char perma[SIZ];
        char encoded_perma[SIZ];
        
-       strcpy(perma, "/readfwd?gotofirst=");
+       strcpy(perma, "/readfwd?go=");
        urlesc(&perma[strlen(perma)], sizeof(perma)-strlen(perma), ChrPtr(WC->CurRoom.name));
        snprintf(&perma[strlen(perma)], sizeof(perma)-strlen(perma), "?p=%d", WC->bptlid);
 
index 89f15392cae8773a9d01cbe6efd99ee9e38630b5..2dc41d99f8611fb3c51e0636dd0850652471af33 100644 (file)
@@ -1393,7 +1393,7 @@ int calendar_summary_view(void) {
                                                wc_printf("<a href=\"display_edit_task"
                                                        "?msgnum=%ld"
                                                        "?return_to_summary=1"
-                                                       "?gotofirst=",
+                                                       "?go=",
                                                        Cal->cal_msgnum
                                                );
                                                escputs(ChrPtr(WCC->CurRoom.name));
@@ -1406,7 +1406,7 @@ int calendar_summary_view(void) {
                                                        "?year=%d"
                                                        "?month=%d"
                                                        "?day=%d"
-                                                       "?gotofirst=",
+                                                       "?go=",
                                                        Cal->cal_msgnum,
                                                        today_tm.tm_year + 1900,
                                                        today_tm.tm_mon + 1,
index 36808397983d8b0b3eb086b0c7e2867c7db8bac7..c2b3e42a0a50c0f19ccbcfa62d260ed4dbf13985 100644 (file)
@@ -38,7 +38,7 @@ void feed_rss_one_message(long msgnum) {
        if (buf[0] != '1') return;
 
        wc_printf("<item>");
-       wc_printf("<link>%s/readfwd?gotofirst=", ChrPtr(site_prefix));
+       wc_printf("<link>%s/readfwd?go=", ChrPtr(site_prefix));
        urlescputs(ChrPtr(WC->CurRoom.name));
        wc_printf("?start_reading_at=%ld</link>", msgnum);
 
@@ -150,7 +150,7 @@ void feed_rss(void) {
        escputs(ChrPtr(WC->CurRoom.name));
        wc_printf("</title><url>");
        urlescputs(ChrPtr(site_prefix));
-       wc_printf("/image?name=_roompic_?gotofirst=");
+       wc_printf("/image?name=_roompic_?go=");
        urlescputs(ChrPtr(WC->CurRoom.name));
        wc_printf("</url><link>");
        urlescputs(ChrPtr(site_prefix));
@@ -176,7 +176,7 @@ void tmplput_rssmeta(StrBuf *Target, WCTemplputParams *TP)
        char feed_link[1024];
        char encoded_link[1024];
 
-       strcpy(feed_link, "/feed_rss?gotofirst=");
+       strcpy(feed_link, "/feed_rss?go=");
        urlesc(&feed_link[20], sizeof(feed_link) - 20, (char *)ChrPtr(WCC->CurRoom.name) );
        CtdlEncodeBase64(encoded_link, feed_link, strlen(feed_link), 0);
 
@@ -196,7 +196,7 @@ void tmplput_rssbutton(StrBuf *Target, WCTemplputParams *TP)
        char feed_link[1024];
        char encoded_link[1024];
 
-       strcpy(feed_link, "/feed_rss?gotofirst=");
+       strcpy(feed_link, "/feed_rss?go=");
        urlesc(&feed_link[20], sizeof(feed_link) - 20, (char *)ChrPtr(WCC->CurRoom.name) );
        CtdlEncodeBase64(encoded_link, feed_link, strlen(feed_link), 0);
 
index dd4f570a91dc3509983c873723ddef90dbec206f..6af3b49be2e691271862ed55611ed2ea3610634b 100644 (file)
@@ -43,7 +43,7 @@ void sitemap_do_messages(void) {
                Msg = GetMessagePtrAt(i, WCC->summ);
                if (Msg != NULL) {
                        wc_printf("<url><loc>%s/readfwd", ChrPtr(site_prefix));
-                       wc_printf("?gotofirst=");
+                       wc_printf("?go=");
                        urlescputs(ChrPtr(WC->CurRoom.name));
                        wc_printf("?start_reading_at=%ld", Msg->msgnum);
                        wc_printf("</loc></url>\r\n");
index 7d77b2f094f46beb1d4f233a5cbef4d688ce9b6e..b26c77a3fa590ade4e346068b96c7a55f731e31b 100644 (file)
@@ -735,21 +735,21 @@ void session_loop(void)
                (WCC->Hdr->HR.eReqType != eHEAD);
 
        /*
-        * If a 'gotofirst' parameter has been specified, attempt to goto that room
+        * If a 'go' parameter has been specified, attempt to goto that room
         * prior to doing anything else.
         */
-       if (havebstr("gotofirst")) {
+       if (havebstr("go")) {
                int ret;
-               ret = gotoroom(sbstr("gotofirst"));     /* do quietly to avoid session output! */
+               ret = gotoroom(sbstr("go"));    /* do quietly to avoid session output! */
                if ((ret/100) != 2) {
                        lprintf(1, "GOTOFIRST: Unable to change to [%s]; Reason: %d\n",
-                               bstr("gotofirst"), ret);
+                               bstr("go"), ret);
                }
        }
 
        /*
         * If we aren't in any room yet, but we have cookie data telling us where we're
-        * supposed to be, and 'gotofirst' was not specified, then go there.
+        * supposed to be, and 'go' was not specified, then go there.
         */
        else if ( (StrLength(WCC->CurRoom.name) == 0) && ( (StrLength(WCC->Hdr->c_roomname) > 0) )) {
                int ret;