From f4c16c53eb8c3ab3640cb7cc7fa0ebecd360513e Mon Sep 17 00:00:00 2001 From: rvelices Date: Fri, 28 May 2010 20:02:22 +0000 Subject: 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 --- include/common.inc.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/common.inc.php') 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'); -- cgit v1.2.3