mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
Use get_site() to define SITEID
eVS: ----------------------------------------------------------------------
This commit is contained in:
parent
ba4278486a
commit
7427070a50
@ -1,8 +1,9 @@
|
||||
<?PHP // $Id$
|
||||
|
||||
/// CONSTANTS /////////////////////////////////////////////////////////////
|
||||
$site=get_site();
|
||||
define('SITEID',$site->id);
|
||||
|
||||
define('SITEID', 1);
|
||||
|
||||
|
||||
/// FUNCTIONS FOR DATABASE HANDLING ////////////////////////////////
|
||||
@ -377,7 +378,7 @@ function count_records_sql($sql) {
|
||||
*/
|
||||
function get_record($table, $field1, $value1, $field2="", $value2="", $field3="", $value3="") {
|
||||
|
||||
global $CFG;
|
||||
global $CFG ;
|
||||
|
||||
$select = "WHERE $field1 = '$value1'";
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user