Changing a require to a require_once in forum postgres upgrade (was getting included twice)

This commit is contained in:
mjollnir_
2005-03-01 23:38:51 +00:00
parent cafe53cfea
commit 729d325004
+1 -1
View File
@@ -118,7 +118,7 @@ function forum_upgrade($oldversion) {
/// Enter initial read records for all posts older than 1 day.
require $CFG->dirroot.'/mod/forum/lib.php';
require_once($CFG->dirroot.'/mod/forum/lib.php');
/// Timestamp for old posts (and therefore considered read).
$dateafter = time() - ($CFG->forum_oldpostdays*24*60*60);
/// Timestamp for one day ago.