Fossil SCM

Fix and improve comments associated with the previous check-in.

drh 2020-05-17 12:59 trunk
Commit 3cbf02acebcd8d142e33dda6003147a53c77708f9efac6b94dc23d7977d97fbf
1 file changed +3 -1
+3 -1
--- src/skins.c
+++ src/skins.c
@@ -283,11 +283,11 @@
283283
** identifier can be attached to resource URLs to force reloading when
284284
** the resources change but allow the resources to be read from cache
285285
** as long as they are unchanged.
286286
**
287287
** 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".
289289
*/
290290
unsigned int skin_id(const char *zResource){
291291
unsigned int h = 0;
292292
if( zAltSkinDir ){
293293
h = skin_hash(0, zAltSkinDir);
@@ -296,10 +296,12 @@
296296
}else{
297297
char *zMTime = db_get_mtime(zResource, 0, 0);
298298
h = skin_hash(0, zMTime);
299299
fossil_free(zMTime);
300300
}
301
+
302
+ /* Change the ID every time Fossil is recompiled */
301303
h = skin_hash(h, fossil_exe_id());
302304
return h;
303305
}
304306
305307
/*
306308
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button