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