Fossil

Diff
Login

Differences From Artifact [5c7c5b3a80]:

To Artifact [9aa20a4014]:


119
120
121
122
123
124
125
126
127
128
129
130
131
132
133

134
135
136
137
138
139
140
** former gets initialized before both URL parameters and the /draft
** path determination).
**
** The rankings were initially defined in
** https://fossil-scm.org/forum/forumpost/caf8c9a8bb
** and are:
**
** 0) A URI starting with draft1-9, linked to via /setup_skin, trumps
** everything else.
**
** 1) The --skin flag or skin: CGI config setting.
**
** 2) The "skin" display setting cookie or URL argument, in that
** order. If the URL argument is provided and refers to a legal
** skin then that will update the display cookie.

**
** 3) Skin properties from the CONFIG db table
**
** 4) Default skin.
*/
char *skin_use_alternative(const char *zName, int rank){
  static int currentRank = 5;







<
|




|
|
>







119
120
121
122
123
124
125

126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
** former gets initialized before both URL parameters and the /draft
** path determination).
**
** The rankings were initially defined in
** https://fossil-scm.org/forum/forumpost/caf8c9a8bb
** and are:
**

** 0) A skin name matching the glob draft[1-9] trumps everything else.
**
** 1) The --skin flag or skin: CGI config setting.
**
** 2) The "skin" display setting cookie or URL argument, in that
** order. If the "skin" URL argument is provided and refers to a legal
** skin then that will update the display cookie. If the skin name is
** illegal it is silently ignored.
**
** 3) Skin properties from the CONFIG db table
**
** 4) Default skin.
*/
char *skin_use_alternative(const char *zName, int rank){
  static int currentRank = 5;