Need this to properly support SMF's other databases
jdarwood007

jdarwood007 commited on 2016-05-29 20:06:04
Showing 1 changed files, with 2 additions and 2 deletions.

... ...
@@ -23,7 +23,7 @@ class pDB_smf extends pDB
23 23
 		global $db_server, $db_name, $db_user, $db_prefix, $db_persist, $db_error_send, $db_last_error;
24 24
 		global $db_connection, $modSettings, $context, $sc, $user_info, $topic, $board, $txt;
25 25
 		global $smcFunc, $ssi_db_user, $scripturl, $ssi_db_passwd, $db_passwd, $cachedir;
26
-		global $ssi_theme, $ssi_layers;
26
+		global $ssi_theme, $ssi_layers, $db_type;
27 27
 
28 28
 		// We strip the slashes from the cookie which resolves the issue.
29 29
 		require_once(pBS::get('smf_dir') . '/Settings.php');
... ...
@@ -128,7 +128,7 @@ class pDB_smf extends pDB
128 128
 		$data[body] String the actual contents of the paste.
129 129
 	* @param $do_create Should we create this or not?  Only set this to false when we shouldn't.
130 130
 	*/
131
-	public function addPasteTest($data, $do_create)
131
+	public function addPasteTest(&$data, &$do_create)
132 132
 	{
133 133
 	}
134 134
 
135 135