diff options
Diffstat (limited to 'src/strusCms.cpp')
-rw-r--r-- | src/strusCms.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/strusCms.cpp b/src/strusCms.cpp index 3a108f5..9d7945b 100644 --- a/src/strusCms.cpp +++ b/src/strusCms.cpp @@ -36,6 +36,7 @@ strusCms::strusCms( cppcms::service &srv ) { locale_name = "en"; script = settings( ).get<std::string>( "strusCms.script" ); + media = settings( ).get<std::string>( "strusCms.media" ); cppdb::session sql( conn ); sql.once( setup_dbconnection ); @@ -58,4 +59,13 @@ std::string strusCms::root( std::string l ) //~ return script + "/" + l; } +std::string strusCms::media_root( std::string l ) +{ + return media; + // TODO: localization later + //~ if( l.empty( ) ) l = locale_name; + //~ return script + "/" + l; +} + + } |