changed: mount points
mount type and mount fs are of type 'int' now they can be added by plugins git-svn-id: svn://ttmath.org/publicrep/winix/trunk@652 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -20,42 +20,42 @@ namespace TemplatesFunctions
|
||||
|
||||
void mount_page_is(Info & i)
|
||||
{
|
||||
i.res = system->mounts.pmount->IsArg(Mount::par_page, i.par);
|
||||
i.res = system->mounts.pmount->IsArg(system->mounts.MountParPage(), i.par);
|
||||
}
|
||||
|
||||
|
||||
void mount_thread_is(Info & i)
|
||||
{
|
||||
i.res = system->mounts.pmount->IsArg(Mount::par_thread, i.par);
|
||||
i.res = system->mounts.pmount->IsArg(system->mounts.MountParThread(), i.par);
|
||||
}
|
||||
|
||||
|
||||
void mount_type_is_thread(Info & i)
|
||||
{
|
||||
i.res = system->mounts.pmount->type == Mount::thread;
|
||||
i.res = system->mounts.pmount->type == system->mounts.MountTypeThread();
|
||||
}
|
||||
|
||||
|
||||
void mount_type_is_ticket(Info & i)
|
||||
{
|
||||
i.res = system->mounts.pmount->type == Mount::ticket;
|
||||
i.res = system->mounts.pmount->type == system->mounts.MountTypeTicket();
|
||||
}
|
||||
|
||||
|
||||
void mount_type_is_cms(Info & i)
|
||||
{
|
||||
i.res = system->mounts.pmount->type == Mount::cms;
|
||||
i.res = system->mounts.pmount->type == system->mounts.MountTypeCms();
|
||||
}
|
||||
|
||||
void mount_has_html_template(Info & i)
|
||||
{
|
||||
i.res = system->mounts.pmount->param[Mount::par_html_template].defined;
|
||||
i.res = system->mounts.pmount->param[system->mounts.MountParHtmlTemplate()].defined;
|
||||
}
|
||||
|
||||
|
||||
void mount_first_html_template(Info & i)
|
||||
{
|
||||
Mount::ParamRow & par = system->mounts.pmount->param[Mount::par_html_template];
|
||||
Mount::ParamRow & par = system->mounts.pmount->param[system->mounts.MountParHtmlTemplate()];
|
||||
|
||||
if( par.defined && !par.arg.empty() )
|
||||
HtmlEscape(i.out, par.arg[0]);
|
||||
|
Reference in New Issue
Block a user