From 54a304276fb361f95332c5c1f8c6f67026b1d96c Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Fri, 31 Jul 2015 13:43:19 +0200 Subject: made it possible to run standalone without proxying webserver: - deliver static pages - some default redirects pointing to the main landing page --- src/strusCms.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/strusCms.cpp') 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( "strusCms.script" ); + media = settings( ).get( "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; +} + + } -- cgit v1.2.3-54-g00ecf