From: Art Cancro Date: Fri, 7 Jan 2011 19:34:43 +0000 (-0500) Subject: The 'gotofirst' key is now called 'go' for brevity X-Git-Tag: v8.11~926 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=74969b49fa3623da467c5870078dcc1c3c5aeb9d The 'gotofirst' key is now called 'go' for brevity --- diff --git a/webcit/auth.c b/webcit/auth.c index 653f0a3d6..4d9010552 100644 --- a/webcit/auth.c +++ b/webcit/auth.c @@ -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); diff --git a/webcit/blogview_renderer.c b/webcit/blogview_renderer.c index 5da977ba3..d9df71bea 100644 --- a/webcit/blogview_renderer.c +++ b/webcit/blogview_renderer.c @@ -53,7 +53,7 @@ void blogpost_render_and_destroy(struct blogpost *bp) { if (p == 0) { /* Show the number of comments */ - wc_printf("top_level_id); + wc_printf("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); diff --git a/webcit/calendar_view.c b/webcit/calendar_view.c index 89f15392c..2dc41d99f 100644 --- a/webcit/calendar_view.c +++ b/webcit/calendar_view.c @@ -1393,7 +1393,7 @@ int calendar_summary_view(void) { wc_printf(""); - wc_printf("%s/readfwd?gotofirst=", ChrPtr(site_prefix)); + wc_printf("%s/readfwd?go=", ChrPtr(site_prefix)); urlescputs(ChrPtr(WC->CurRoom.name)); wc_printf("?start_reading_at=%ld", msgnum); @@ -150,7 +150,7 @@ void feed_rss(void) { escputs(ChrPtr(WC->CurRoom.name)); wc_printf(""); urlescputs(ChrPtr(site_prefix)); - wc_printf("/image?name=_roompic_?gotofirst="); + wc_printf("/image?name=_roompic_?go="); urlescputs(ChrPtr(WC->CurRoom.name)); wc_printf(""); 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); diff --git a/webcit/sitemap.c b/webcit/sitemap.c index dd4f570a9..6af3b49be 100644 --- a/webcit/sitemap.c +++ b/webcit/sitemap.c @@ -43,7 +43,7 @@ void sitemap_do_messages(void) { Msg = GetMessagePtrAt(i, WCC->summ); if (Msg != NULL) { wc_printf("%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("\r\n"); diff --git a/webcit/webcit.c b/webcit/webcit.c index 7d77b2f09..b26c77a3f 100644 --- a/webcit/webcit.c +++ b/webcit/webcit.c @@ -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;