From dc301d4c50283717c51c4c6246defdb074bb3275 Mon Sep 17 00:00:00 2001 From: Tomasz Sowa Date: Mon, 2 Mar 2015 21:23:29 +0000 Subject: [PATCH] changed: editors (emacs, ckeditor...) doesn't set an item's title now (if it was empty) git-svn-id: svn://ttmath.org/publicrep/winix/trunk@1003 e52654a7-88a9-db11-a3e9-0013d4bc506e --- functions/functions.cpp | 2 ++ templates/templates.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/functions/functions.cpp b/functions/functions.cpp index 85d7ff5..85d9f8b 100644 --- a/functions/functions.cpp +++ b/functions/functions.cpp @@ -508,12 +508,14 @@ void Functions::ReadItemUrlSubject(Item & item, Item::Type item_type) if( new_subject ) item.subject = *new_subject; + /* if( item.subject.empty() ) { item.subject = cur->request->dir_tab.back()->subject; item.subject += L"_msg_"; Toa(db->Size(cur->request->dir_tab.back()->id, Item::file), item.subject, 10, false); } + */ if( new_url ) item.url = *new_url; diff --git a/templates/templates.cpp b/templates/templates.cpp index 354b689..eabc294 100644 --- a/templates/templates.cpp +++ b/templates/templates.cpp @@ -41,7 +41,7 @@ namespace Winix { - +// !! IMPROVE ME moze zamienic na EzcFunctions namespace TemplatesFunctions {