Differences From:
File
src/style.c
part of check-in
[13732d495d]
- Fix a bug in the default header.
by
drh on
2007-11-23 23:06:09.
[view]
To:
File
src/style.c
part of check-in
[f394d84560]
- Update SQLite to the latest build from CVS. Add in the FTS3 extension,
though it is not yet being used. Additional work toward tickets.
by
drh on
2007-11-25 16:13:52.
[view]
@@ -78,8 +78,10 @@
const char *zLogInOut = "Login";
const char *zHeader = db_get("header", (char*)zDefaultHeader);
login_check_credentials();
+ if( pInterp ) return;
+
/* Generate the header up through the main menu */
pInterp = SbS_Create();
SbS_Store(pInterp, "project_name",
db_get("project-name","Unnamed Fossil Project"), 0);
@@ -136,12 +138,16 @@
/*
** Draw the footer at the bottom of the page.
*/
void style_footer(void){
- const char *zFooter = db_get("footer", (char*)zDefaultFooter);
+ const char *zFooter;
+
+ if( pInterp==0 ) return;
+ zFooter = db_get("footer", (char*)zDefaultFooter);
@ </div>
SbS_Render(pInterp, zFooter);
SbS_Destroy(pInterp);
+ pInterp = 0;
}
/* @-comment: // */
/*