aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2010-05-28 20:02:22 +0000
committerrvelices <rv-github@modusoptimus.com>2010-05-28 20:02:22 +0000
commitf4c16c53eb8c3ab3640cb7cc7fa0ebecd360513e (patch)
treea95a0659b512e692eed7f689f016910ba1c26ddb
parent1b90ca176434d9e57b8be750216eb637b4685b47 (diff)
added a test that $conf['gallery_url'] != http://piwigo.org/demo
git-svn-id: http://piwigo.org/svn/branches/2.1@6412 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/common.inc.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/common.inc.php b/include/common.inc.php
index 9805bc362..07949bba5 100644
--- a/include/common.inc.php
+++ b/include/common.inc.php
@@ -118,6 +118,10 @@ catch (Exception $e)
pwg_db_check_charset();
load_conf_from_db();
+if ('http://piwigo.org/demo' == $conf['gallery_url'])
+{
+ conf_update_param('gallery_url', '');
+}
load_plugins();
include(PHPWG_ROOT_PATH.'include/user.inc.php');