initialize session connection in ttrss_open but define session_connection in global context
This commit is contained in:
parent
168680976f
commit
c35b6d8e14
|
@ -21,8 +21,6 @@
|
|||
|
||||
global $session_connection;
|
||||
|
||||
$session_connection = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
|
||||
|
||||
function session_get_schema_version($link, $nocache = false) {
|
||||
global $schema_version;
|
||||
|
||||
|
@ -97,9 +95,10 @@
|
|||
|
||||
|
||||
function ttrss_open ($s, $n) {
|
||||
|
||||
global $session_connection;
|
||||
|
||||
$session_connection = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue