mirror of https://github.com/BOINC/boinc.git
PHP code: avoid using a global var
This commit is contained in:
parent
e6858433ee
commit
39a57c07eb
|
@ -16,9 +16,13 @@
|
|||
// You should have received a copy of the GNU Lesser General Public License
|
||||
// along with BOINC. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
$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;
|
||||
|
|
Loading…
Reference in New Issue