Fossil SCM
Make Th1 variable $current_page available to the header and footer.
Commit
a0f18644994ad929a4d527382b2f47836c593a0b
Parent
525cc35bf389672…
1 file changed
+1
+1
| --- src/style.c | ||
| +++ src/style.c | ||
| @@ -82,10 +82,11 @@ | ||
| 82 | 82 | /* Generate the header up through the main menu */ |
| 83 | 83 | Th_Store("project_name", db_get("project-name","Unnamed Fossil Project")); |
| 84 | 84 | Th_Store("title", zTitle); |
| 85 | 85 | Th_Store("baseurl", g.zBaseURL); |
| 86 | 86 | Th_Store("index_page", db_get("index-page","/home")); |
| 87 | + Th_Store("current_page", g.zPath); | |
| 87 | 88 | Th_Store("manifest_version", MANIFEST_VERSION); |
| 88 | 89 | Th_Store("manifest_date", MANIFEST_DATE); |
| 89 | 90 | if( g.zLogin ){ |
| 90 | 91 | Th_Store("login", g.zLogin); |
| 91 | 92 | } |
| 92 | 93 |
| --- src/style.c | |
| +++ src/style.c | |
| @@ -82,10 +82,11 @@ | |
| 82 | /* Generate the header up through the main menu */ |
| 83 | Th_Store("project_name", db_get("project-name","Unnamed Fossil Project")); |
| 84 | Th_Store("title", zTitle); |
| 85 | Th_Store("baseurl", g.zBaseURL); |
| 86 | Th_Store("index_page", db_get("index-page","/home")); |
| 87 | Th_Store("manifest_version", MANIFEST_VERSION); |
| 88 | Th_Store("manifest_date", MANIFEST_DATE); |
| 89 | if( g.zLogin ){ |
| 90 | Th_Store("login", g.zLogin); |
| 91 | } |
| 92 |
| --- src/style.c | |
| +++ src/style.c | |
| @@ -82,10 +82,11 @@ | |
| 82 | /* Generate the header up through the main menu */ |
| 83 | Th_Store("project_name", db_get("project-name","Unnamed Fossil Project")); |
| 84 | Th_Store("title", zTitle); |
| 85 | Th_Store("baseurl", g.zBaseURL); |
| 86 | Th_Store("index_page", db_get("index-page","/home")); |
| 87 | Th_Store("current_page", g.zPath); |
| 88 | Th_Store("manifest_version", MANIFEST_VERSION); |
| 89 | Th_Store("manifest_date", MANIFEST_DATE); |
| 90 | if( g.zLogin ){ |
| 91 | Th_Store("login", g.zLogin); |
| 92 | } |
| 93 |