diff --git a/html/inc/boinc_db.inc b/html/inc/boinc_db.inc index 5d299efcd3..8c29ad3440 100644 --- a/html/inc/boinc_db.inc +++ b/html/inc/boinc_db.inc @@ -16,9 +16,13 @@ // You should have received a copy of the GNU Lesser General Public License // along with BOINC. If not, see . -$d = dirname(__FILE__); -require_once("$d/db_conn.inc"); -require_once("$d/util_basic.inc"); +function incs() { + $d = dirname(__FILE__); + require_once("$d/db_conn.inc"); + require_once("$d/util_basic.inc"); +} + +incs(); class BoincDb extends DbConn { static $instance;