the first part of reimplementing has been done
now we have app object and singletons are only: log logn plugin and app git-svn-id: svn://ttmath.org/publicrep/winix/trunk@628 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
*/
|
||||
|
||||
#include "templates.h"
|
||||
#include "../core/data.h"
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -20,31 +20,31 @@ namespace TemplatesFunctions
|
||||
|
||||
void mount_page_is(Info & i)
|
||||
{
|
||||
i.res = data.mounts.pmount->IsArg(Mount::par_page, i.par);
|
||||
i.res = system->mounts.pmount->IsArg(Mount::par_page, i.par);
|
||||
}
|
||||
|
||||
|
||||
void mount_thread_is(Info & i)
|
||||
{
|
||||
i.res = data.mounts.pmount->IsArg(Mount::par_thread, i.par);
|
||||
i.res = system->mounts.pmount->IsArg(Mount::par_thread, i.par);
|
||||
}
|
||||
|
||||
|
||||
void mount_type_is_thread(Info & i)
|
||||
{
|
||||
i.res = data.mounts.pmount->type == Mount::thread;
|
||||
i.res = system->mounts.pmount->type == Mount::thread;
|
||||
}
|
||||
|
||||
|
||||
void mount_type_is_ticket(Info & i)
|
||||
{
|
||||
i.res = data.mounts.pmount->type == Mount::ticket;
|
||||
i.res = system->mounts.pmount->type == Mount::ticket;
|
||||
}
|
||||
|
||||
|
||||
void mount_type_is_cms(Info & i)
|
||||
{
|
||||
i.res = data.mounts.pmount->type == Mount::cms;
|
||||
i.res = system->mounts.pmount->type == Mount::cms;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user