From 61710233cd522b53087db41a9d85bc347476e13a Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 6 Mar 2017 11:35:00 -0800 Subject: [PATCH] Project creation: fix a couple of bugs --- db/constraints.sql | 2 +- html/project.sample/project.inc | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/db/constraints.sql b/db/constraints.sql index 7f0ceb5b0b..e4cca9f3fb 100644 --- a/db/constraints.sql +++ b/db/constraints.sql @@ -131,7 +131,7 @@ alter table assignment add index asgn_target(target_type, target_id); alter table job_file - add unique jf_md5(md5); + add unique jf_name(name); alter table badge_user add unique (user_id, badge_id); diff --git a/html/project.sample/project.inc b/html/project.sample/project.inc index bee527101e..de52ecd0e5 100644 --- a/html/project.sample/project.inc +++ b/html/project.sample/project.inc @@ -15,15 +15,6 @@ require_once("../inc/util.inc"); define("PROJECT", "REPLACE WITH PROJECT NAME"); define("COPYRIGHT_HOLDER", "REPLACE WITH COPYRIGHT HOLDER"); -//-------------- contact info - -define("SYS_ADMIN_EMAIL", "admin@$master_url"); -define("UOTD_ADMIN_EMAIL", "admin@$master_url"); - // who gets emails about user of the day pool running low? -define("POST_REPORT_EMAILS", "moderator1@$master_url|moderator2@$master_url"); - // Email addresses separated by pipe ( | ) that will receive user reports - // of offensive forum posts. - //-------------- URLs and directories $master_url = parse_config(get_config(), ""); @@ -34,6 +25,15 @@ define("PROFILE_PATH", "../user_profile/"); define("PROFILE_URL", "user_profile/"); define("LANGUAGE_FILE", "languages.txt"); +//-------------- contact info + +define("SYS_ADMIN_EMAIL", "admin@$master_url"); +define("UOTD_ADMIN_EMAIL", "admin@$master_url"); + // who gets emails about user of the day pool running low? +define("POST_REPORT_EMAILS", "moderator1@$master_url|moderator2@$master_url"); + // Email addresses separated by pipe ( | ) that will receive user reports + // of offensive forum posts. + //-------------- Caching //define("MEMCACHE_SERVERS", "127.0.0.1:11211");