added: Rebus
(when no logged user wants to send a message then he is asked a question) git-svn-id: svn://ttmath.org/publicrep/cmslu/trunk@521 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -136,6 +136,7 @@ Ezc::Pattern * p = 0;
|
||||
switch( request.status )
|
||||
{
|
||||
case Error::ok:
|
||||
case Error::rebus_bad_answer:
|
||||
p = content_for_function();
|
||||
break;
|
||||
|
||||
@@ -231,6 +232,7 @@ void Templates::CreateFunctions()
|
||||
functions.Insert("item_date_modification", item_date_modification);
|
||||
functions.Insert("item_dates_equal", item_dates_equal);
|
||||
functions.Insert("item_run", item_run);
|
||||
functions.Insert("item_guest_name", item_guest_name);
|
||||
|
||||
functions.Insert("item_old_id", item_old_id);
|
||||
functions.Insert("item_old_subject", item_old_subject);
|
||||
@@ -360,7 +362,6 @@ void Templates::CreateFunctions()
|
||||
thread
|
||||
*/
|
||||
functions.Insert("thread_is", thread_is);
|
||||
functions.Insert("thread_show_edit_subject", thread_show_edit_subject);
|
||||
functions.Insert("thread_tab", thread_tab);
|
||||
functions.Insert("thread_tab_url", thread_tab_url);
|
||||
functions.Insert("thread_tab_subject", thread_tab_subject);
|
||||
@@ -382,6 +383,13 @@ void Templates::CreateFunctions()
|
||||
functions.Insert("mount_is_cms", mount_is_cms);
|
||||
|
||||
|
||||
/*
|
||||
rebus
|
||||
*/
|
||||
functions.Insert("rebus_question", rebus_question);
|
||||
|
||||
|
||||
|
||||
|
||||
plugin.Call(CMSLU_TEMPLATES_CREATEFUNCTIONS, &functions);
|
||||
}
|
||||
|
Reference in New Issue
Block a user