summaryrefslogtreecommitdiff
path: root/src/strusCms.cpp
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2015-07-31 13:43:19 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2015-07-31 13:43:19 +0200
commit54a304276fb361f95332c5c1f8c6f67026b1d96c (patch)
tree99ecbf787f2cff1593a77890b690a1f632e79733 /src/strusCms.cpp
parenta07e48f45e3b922a63aaae58b5bd816b8e324ee1 (diff)
downloadaCms-54a304276fb361f95332c5c1f8c6f67026b1d96c.tar.gz
aCms-54a304276fb361f95332c5c1f8c6f67026b1d96c.tar.bz2
made it possible to run standalone without proxying webserver:
- deliver static pages - some default redirects pointing to the main landing page
Diffstat (limited to 'src/strusCms.cpp')
-rw-r--r--src/strusCms.cpp10
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;
+}
+
+
}