mirror of https://github.com/acanas/swad-core.git
Version 17.26.3
This commit is contained in:
parent
eba090eabd
commit
b7a79e7b8a
|
@ -264,13 +264,14 @@
|
|||
/****************************** 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 JS_FILE "swad17.17.1.js"
|
||||
|
||||
// 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
|
||||
/*
|
||||
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.1: Nov 10, 2017 Default theme is white. (234380 lines)
|
||||
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)
|
||||
{
|
||||
char Ch,*Ptr,*Ptr2;
|
||||
int LengthStr;
|
||||
char Ch;
|
||||
char *Ptr;
|
||||
char *Ptr2;
|
||||
unsigned LengthStr;
|
||||
bool FirstLetter = true;
|
||||
|
||||
for (Ptr = Str;
|
||||
|
@ -710,15 +712,16 @@ void Str_ConvertToTitleType (char *Str)
|
|||
Ch = *Ptr;
|
||||
if (isspace ((int) Ch) ||
|
||||
Ch == '\xA0' || // Unicode translation for
|
||||
Ch == '-' ||
|
||||
Ch == '(' ||
|
||||
Ch == ')' ||
|
||||
Ch == ',' ||
|
||||
Ch == ';' ||
|
||||
Ch == '.' ||
|
||||
Ch == ':' ||
|
||||
Ch == 'ª' ||
|
||||
Ch == 'º')
|
||||
Ch == '-' ||
|
||||
Ch == '(' ||
|
||||
Ch == ')' ||
|
||||
Ch == ',' ||
|
||||
// Ch == ';' || // Do not start a new word on ';'.
|
||||
// Example: aktoğan should be converted to Aktoğan
|
||||
Ch == '.' ||
|
||||
Ch == ':' ||
|
||||
Ch == 'ª' ||
|
||||
Ch == 'º')
|
||||
FirstLetter = true;
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue