mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-12 00:20:42 +01:00
Compatibility patch
Replaces instances of establish_db_connection() with establish_db_connection(dbcon).
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
var/datum/preferences/D = preferences_datums[ckey]
|
||||
if(D == src)
|
||||
log_debug("Ckey is [ckey]")
|
||||
establish_db_connection()
|
||||
establish_db_connection(dbcon)
|
||||
if(!dbcon.IsConnected())
|
||||
return 0
|
||||
else
|
||||
@@ -54,7 +54,7 @@
|
||||
return 0
|
||||
|
||||
/datum/preferences/proc/SQLload_character(var/slot, var/pckey)
|
||||
establish_db_connection()
|
||||
establish_db_connection(dbcon)
|
||||
if(!dbcon.IsConnected())
|
||||
return 0
|
||||
char_slot = slot
|
||||
@@ -631,7 +631,7 @@
|
||||
|
||||
/datum/preferences/proc/LoadPrefData(var/ckey)
|
||||
log_debug("load pref data")
|
||||
establish_db_connection()
|
||||
establish_db_connection(dbcon)
|
||||
if(!dbcon.IsConnected())
|
||||
return 0
|
||||
TextQuery = "SELECT * FROM player_preferences WHERE ckey = '[ckey]'"
|
||||
@@ -729,4 +729,4 @@
|
||||
if(!citizenship) citizenship = "None"
|
||||
if(!faction) faction = "None"
|
||||
if(!religion) religion = "None"
|
||||
return 1
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user