Fossil SCM
Fix and improve comments associated with the previous check-in.
Commit
3cbf02acebcd8d142e33dda6003147a53c77708f9efac6b94dc23d7977d97fbf
Parent
56ad55415fb2d3e…
1 file changed
+3
-1
+3
-1
| --- src/skins.c | ||
| +++ src/skins.c | ||
| @@ -283,11 +283,11 @@ | ||
| 283 | 283 | ** identifier can be attached to resource URLs to force reloading when |
| 284 | 284 | ** the resources change but allow the resources to be read from cache |
| 285 | 285 | ** as long as they are unchanged. |
| 286 | 286 | ** |
| 287 | 287 | ** The zResource argument is the name of a CONFIG setting that |
| 288 | -** defines the resource. Examples: "css", "logo", "background". | |
| 288 | +** defines the resource. Examples: "css", "logo-image". | |
| 289 | 289 | */ |
| 290 | 290 | unsigned int skin_id(const char *zResource){ |
| 291 | 291 | unsigned int h = 0; |
| 292 | 292 | if( zAltSkinDir ){ |
| 293 | 293 | h = skin_hash(0, zAltSkinDir); |
| @@ -296,10 +296,12 @@ | ||
| 296 | 296 | }else{ |
| 297 | 297 | char *zMTime = db_get_mtime(zResource, 0, 0); |
| 298 | 298 | h = skin_hash(0, zMTime); |
| 299 | 299 | fossil_free(zMTime); |
| 300 | 300 | } |
| 301 | + | |
| 302 | + /* Change the ID every time Fossil is recompiled */ | |
| 301 | 303 | h = skin_hash(h, fossil_exe_id()); |
| 302 | 304 | return h; |
| 303 | 305 | } |
| 304 | 306 | |
| 305 | 307 | /* |
| 306 | 308 |
| --- src/skins.c | |
| +++ src/skins.c | |
| @@ -283,11 +283,11 @@ | |
| 283 | ** identifier can be attached to resource URLs to force reloading when |
| 284 | ** the resources change but allow the resources to be read from cache |
| 285 | ** as long as they are unchanged. |
| 286 | ** |
| 287 | ** The zResource argument is the name of a CONFIG setting that |
| 288 | ** defines the resource. Examples: "css", "logo", "background". |
| 289 | */ |
| 290 | unsigned int skin_id(const char *zResource){ |
| 291 | unsigned int h = 0; |
| 292 | if( zAltSkinDir ){ |
| 293 | h = skin_hash(0, zAltSkinDir); |
| @@ -296,10 +296,12 @@ | |
| 296 | }else{ |
| 297 | char *zMTime = db_get_mtime(zResource, 0, 0); |
| 298 | h = skin_hash(0, zMTime); |
| 299 | fossil_free(zMTime); |
| 300 | } |
| 301 | h = skin_hash(h, fossil_exe_id()); |
| 302 | return h; |
| 303 | } |
| 304 | |
| 305 | /* |
| 306 |
| --- src/skins.c | |
| +++ src/skins.c | |
| @@ -283,11 +283,11 @@ | |
| 283 | ** identifier can be attached to resource URLs to force reloading when |
| 284 | ** the resources change but allow the resources to be read from cache |
| 285 | ** as long as they are unchanged. |
| 286 | ** |
| 287 | ** The zResource argument is the name of a CONFIG setting that |
| 288 | ** defines the resource. Examples: "css", "logo-image". |
| 289 | */ |
| 290 | unsigned int skin_id(const char *zResource){ |
| 291 | unsigned int h = 0; |
| 292 | if( zAltSkinDir ){ |
| 293 | h = skin_hash(0, zAltSkinDir); |
| @@ -296,10 +296,12 @@ | |
| 296 | }else{ |
| 297 | char *zMTime = db_get_mtime(zResource, 0, 0); |
| 298 | h = skin_hash(0, zMTime); |
| 299 | fossil_free(zMTime); |
| 300 | } |
| 301 | |
| 302 | /* Change the ID every time Fossil is recompiled */ |
| 303 | h = skin_hash(h, fossil_exe_id()); |
| 304 | return h; |
| 305 | } |
| 306 | |
| 307 | /* |
| 308 |