small refactoring
git-svn-id: svn://ttmath.org/publicrep/winix/trunk@619 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -36,13 +36,30 @@ void print_date_nice(Ezc::Info & i, const tm * ptm)
|
||||
|
||||
|
||||
|
||||
int ParseCKeditorFun()
|
||||
{
|
||||
ckeditor_getparser.fun_num = 2; // default if there is a problem with parsing info
|
||||
|
||||
if( !request.get_table.empty() )
|
||||
{
|
||||
size_t last = request.get_table.size()-1;
|
||||
|
||||
if( !request.get_table[last].empty() )
|
||||
{
|
||||
const char * str = request.get_table[last].c_str() + 1; // the first char is '?'
|
||||
ckeditor_getparser.Parse(str);
|
||||
}
|
||||
}
|
||||
|
||||
return ckeditor_getparser.fun_num;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// those functions from here are used in the second thread too
|
||||
|
||||
|
||||
|
||||
|
||||
void Read(Patterns & patterns, size_t pat, Locale & locale, LocaleFilter & locale_filter, const char * file, bool delete_white)
|
||||
{
|
||||
size_t i;
|
||||
@@ -79,28 +96,6 @@ size_t loc, pat;
|
||||
}
|
||||
|
||||
|
||||
|
||||
int ParseCKeditorFun()
|
||||
{
|
||||
ckeditor_getparser.fun_num = 2; // default if there is a problem with parsing info
|
||||
|
||||
if( !request.get_table.empty() )
|
||||
{
|
||||
size_t last = request.get_table.size()-1;
|
||||
|
||||
if( !request.get_table[last].empty() )
|
||||
{
|
||||
const char * str = request.get_table[last].c_str() + 1; // the first char is '?'
|
||||
ckeditor_getparser.Parse(str);
|
||||
}
|
||||
}
|
||||
|
||||
return ckeditor_getparser.fun_num;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
} // namespace TemplatesFunctions
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user