tickets has been moved to a new plugin 'ticket'
git-svn-id: svn://ttmath.org/publicrep/winix/trunk@657 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -15,38 +15,30 @@
|
||||
namespace TemplatesFunctions
|
||||
{
|
||||
|
||||
void mount_type_is(Info & i)
|
||||
{
|
||||
int mount_type_id = system->mounts.FindMountType(i.par);
|
||||
|
||||
if( mount_type_id == -1 )
|
||||
return;
|
||||
|
||||
i.res = (system->mounts.pmount->type == mount_type_id);
|
||||
}
|
||||
|
||||
|
||||
|
||||
void mount_page_is(Info & i)
|
||||
void mount_page_arg_is(Info & i)
|
||||
{
|
||||
i.res = system->mounts.pmount->IsArg(system->mounts.MountParPage(), i.par);
|
||||
}
|
||||
|
||||
|
||||
void mount_thread_is(Info & i)
|
||||
void mount_thread_arg_is(Info & i)
|
||||
{
|
||||
i.res = system->mounts.pmount->IsArg(system->mounts.MountParThread(), i.par);
|
||||
}
|
||||
|
||||
|
||||
void mount_type_is_thread(Info & i)
|
||||
{
|
||||
i.res = system->mounts.pmount->type == system->mounts.MountTypeThread();
|
||||
}
|
||||
|
||||
|
||||
void mount_type_is_ticket(Info & i)
|
||||
{
|
||||
i.res = system->mounts.pmount->type == system->mounts.MountTypeTicket();
|
||||
}
|
||||
|
||||
|
||||
void mount_type_is_cms(Info & i)
|
||||
{
|
||||
i.res = system->mounts.pmount->type == system->mounts.MountTypeCms();
|
||||
}
|
||||
|
||||
void mount_has_html_template(Info & i)
|
||||
{
|
||||
i.res = system->mounts.pmount->param[system->mounts.MountParHtmlTemplate()].defined;
|
||||
|
Reference in New Issue
Block a user