added: Patterns class (in templates)
ezc patterns are managed by this class added: some work in groupitem plugin (not finished yet) changed: ConfParser can read a string from memory now (need some testing yet) git-svn-id: svn://ttmath.org/publicrep/winix/trunk@757 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -271,18 +271,14 @@ void Upload::CreateJSON()
|
||||
{
|
||||
// !! locale beda w zaleznosci od uzytkownika
|
||||
size_t loc = TemplatesFunctions::locale.GetLang();
|
||||
size_t idu = static_cast<size_t>(id);
|
||||
TemplatesFunctions::Patterns & patfun = TemplatesFunctions::patterns_fun;
|
||||
Ezc::Pattern * pat = TemplatesFunctions::patterns.Get(template_index, loc);
|
||||
|
||||
if( loc < patfun.size() && idu < patfun[loc].size() )
|
||||
if( pat )
|
||||
{
|
||||
templates->Generate(patfun[loc][idu]);
|
||||
cur->request->page_generated = true;
|
||||
templates->Generate(*pat);
|
||||
cur->request->page_generated = true;
|
||||
cur->request->use_html_filter = false;
|
||||
}
|
||||
|
||||
// !! usunac
|
||||
//log << log1 << cur->request->page.Str() << logend;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user