Bug fixes for PSR-12 update
This commit is contained in:
@@ -370,7 +370,7 @@ class Login extends \CoreLibs\DB\IO
|
||||
. "eareu.level AS user_level, eareu.type AS user_type, "
|
||||
. "eareg.level AS group_level, eareg.type AS group_type, "
|
||||
. "eu.enabled, el.short_name AS lang_short, el.iso_name AS lang_iso, "
|
||||
. "firstheader_color AS first_header_color, "
|
||||
. "first.header_color AS first_header_color, "
|
||||
. "second.header_color AS second_header_color, second.template "
|
||||
. "FROM edit_user eu "
|
||||
. "LEFT JOIN edit_scheme second ON "
|
||||
@@ -380,7 +380,7 @@ class Login extends \CoreLibs\DB\IO
|
||||
. "edit_access_right eareg, "
|
||||
. "edit_scheme first "
|
||||
. "WHERE first.edit_scheme_id = eg.edit_scheme_id "
|
||||
. "AND eu.edit_group_id = egedit_group_id "
|
||||
. "AND eu.edit_group_id = eg.edit_group_id "
|
||||
. "AND eu.edit_language_id = el.edit_language_id AND "
|
||||
. "eu.edit_access_right_id = eareu.edit_access_right_id AND "
|
||||
. "eg.edit_access_right_id = eareg.edit_access_right_id AND "
|
||||
|
||||
@@ -291,14 +291,14 @@ class Generate extends \CoreLibs\DB\Extended\ArrayIO
|
||||
// then check general global folder
|
||||
if (
|
||||
is_dir(TABLE_ARRAYS) &&
|
||||
is_file(TABLE_ARRAYS . 'array_' . $this->my_page_name . ' . php')
|
||||
is_file(TABLE_ARRAYS . 'array_' . $this->my_page_name . '.php')
|
||||
) {
|
||||
include(TABLE_ARRAYS . 'array_' . $this->my_page_name . ' . php');
|
||||
include(TABLE_ARRAYS . 'array_' . $this->my_page_name . '.php');
|
||||
} elseif (
|
||||
is_dir(BASE . INCLUDES . TABLE_ARRAYS) &&
|
||||
is_file(BASE . INCLUDES . TABLE_ARRAYS . 'array_' . $this->my_page_name . ' . php')
|
||||
is_file(BASE . INCLUDES . TABLE_ARRAYS . 'array_' . $this->my_page_name . '.php')
|
||||
) {
|
||||
include(BASE . INCLUDES . TABLE_ARRAYS . 'array_' . $this->my_page_name . ' . php');
|
||||
include(BASE . INCLUDES . TABLE_ARRAYS . 'array_' . $this->my_page_name . '.php');
|
||||
}
|
||||
// in the include file there must be a variable with the page name matching
|
||||
if (isset(${$this->my_page_name}) && is_array(${$this->my_page_name})) {
|
||||
|
||||
Reference in New Issue
Block a user