initialize session connection in ttrss_open but define session_connection in global context

This commit is contained in:
Andrew Dolgov 2013-04-02 14:04:47 +04:00
parent 168680976f
commit c35b6d8e14
1 changed files with 2 additions and 3 deletions

View File

@ -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;
}