Diff
Not logged in

Differences From:

File src/style.c part of check-in [a0f1864499] - Make Th1 variable $current_page available to the header and footer. by drh on 2008-05-17 13:40:32. [view]

To:

File src/style.c part of check-in [55342eb9fb] - The bug report generator compiles but still does not work right. by drh on 2008-05-17 14:49:49. [view]

@@ -72,11 +72,17 @@
 
 /*
 ** Draw the header.
 */
-void style_header(const char *zTitle){
+void style_header(const char *zTitleFormat, ...){
+  va_list ap;
+  char *zTitle;
   const char *zHeader = db_get("header", (char*)zDefaultHeader);
   login_check_credentials();
+
+  va_start(ap, zTitleFormat);
+  zTitle = vmprintf(zTitleFormat, ap);
+  va_end(ap);
 
   cgi_destination(CGI_HEADER);
 
   /* Generate the header up through the main menu */