summaryrefslogtreecommitdiff
path: root/src/strusCms.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/strusCms.cpp')
-rw-r--r--src/strusCms.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/strusCms.cpp b/src/strusCms.cpp
index db715f4..e5792ec 100644
--- a/src/strusCms.cpp
+++ b/src/strusCms.cpp
@@ -8,9 +8,9 @@ namespace apps {
strusCms::strusCms( cppcms::service &srv )
: cppcms::application( srv ),
- conn( settings( ).get<std::string>( "strusCms.db_connection" ) ),
intro( *this ),
- user( *this )
+ user( *this ),
+ conn( settings( ).get<std::string>( "strusCms.db_connection" ) )
{
locale_name = "en";
script = settings( ).get<std::string>( "strusCms.script" );
@@ -18,13 +18,15 @@ strusCms::strusCms( cppcms::service &srv )
add( intro );
add( user );
- mapper( ).root( "/strusCms" );
+ mapper( ).root( root( ) );
}
std::string strusCms::root( std::string l )
{
- if( l.empty( ) ) l = locale_name;
- return script + "/" + l;
+ return script;
+ // TODO: localization later
+ //~ if( l.empty( ) ) l = locale_name;
+ //~ return script + "/" + l;
}
}