mirror of
https://github.com/acanas/swad-core.git
synced 2024-06-01 06:15:31 +02:00
Version 17.26.3
This commit is contained in:
parent
eba090eabd
commit
b7a79e7b8a
|
@ -264,13 +264,14 @@
|
||||||
/****************************** Public constants *****************************/
|
/****************************** Public constants *****************************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
#define Log_PLATFORM_VERSION "SWAD 17.26.2 (2017-11-12)"
|
#define Log_PLATFORM_VERSION "SWAD 17.26.3 (2017-11-13)"
|
||||||
#define CSS_FILE "swad17.25.4.css"
|
#define CSS_FILE "swad17.25.4.css"
|
||||||
#define JS_FILE "swad17.17.1.js"
|
#define JS_FILE "swad17.17.1.js"
|
||||||
|
|
||||||
// Number of lines (includes comments but not blank lines) has been got with the following command:
|
// Number of lines (includes comments but not blank lines) has been got with the following command:
|
||||||
// nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*?.h sql/swad*.sql | tail -1
|
// nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*?.h sql/swad*.sql | tail -1
|
||||||
/*
|
/*
|
||||||
|
Version 17.26.3: Nov 13, 2017 Fixed bug converting string to Title (for example in surnames). (234387 lines)
|
||||||
Version 17.26.2: Nov 12, 2017 Fixed bug in marks, reported by Francisco Ocaña Lara. (234383 lines)
|
Version 17.26.2: Nov 12, 2017 Fixed bug in marks, reported by Francisco Ocaña Lara. (234383 lines)
|
||||||
Version 17.26.1: Nov 10, 2017 Default theme is white. (234380 lines)
|
Version 17.26.1: Nov 10, 2017 Default theme is white. (234380 lines)
|
||||||
Version 17.26: Nov 08, 2017 Tables converted to MyISAM.
|
Version 17.26: Nov 08, 2017 Tables converted to MyISAM.
|
||||||
|
|
|
@ -699,8 +699,10 @@ bool Str_URLLooksValid (const char *URL)
|
||||||
|
|
||||||
void Str_ConvertToTitleType (char *Str)
|
void Str_ConvertToTitleType (char *Str)
|
||||||
{
|
{
|
||||||
char Ch,*Ptr,*Ptr2;
|
char Ch;
|
||||||
int LengthStr;
|
char *Ptr;
|
||||||
|
char *Ptr2;
|
||||||
|
unsigned LengthStr;
|
||||||
bool FirstLetter = true;
|
bool FirstLetter = true;
|
||||||
|
|
||||||
for (Ptr = Str;
|
for (Ptr = Str;
|
||||||
|
@ -710,15 +712,16 @@ void Str_ConvertToTitleType (char *Str)
|
||||||
Ch = *Ptr;
|
Ch = *Ptr;
|
||||||
if (isspace ((int) Ch) ||
|
if (isspace ((int) Ch) ||
|
||||||
Ch == '\xA0' || // Unicode translation for
|
Ch == '\xA0' || // Unicode translation for
|
||||||
Ch == '-' ||
|
Ch == '-' ||
|
||||||
Ch == '(' ||
|
Ch == '(' ||
|
||||||
Ch == ')' ||
|
Ch == ')' ||
|
||||||
Ch == ',' ||
|
Ch == ',' ||
|
||||||
Ch == ';' ||
|
// Ch == ';' || // Do not start a new word on ';'.
|
||||||
Ch == '.' ||
|
// Example: aktoğan should be converted to Aktoğan
|
||||||
Ch == ':' ||
|
Ch == '.' ||
|
||||||
Ch == 'ª' ||
|
Ch == ':' ||
|
||||||
Ch == 'º')
|
Ch == 'ª' ||
|
||||||
|
Ch == 'º')
|
||||||
FirstLetter = true;
|
FirstLetter = true;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user