mirror of
https://github.com/e107inc/e107.git
synced 2025-08-19 12:51:52 +02:00
Move e107_admin/sql 'extended' classes to e107_core/sql
This commit is contained in:
@@ -1154,13 +1154,13 @@ class users_ext
|
||||
|
||||
if ($tmp[$f]['type']=="db field")
|
||||
{
|
||||
if (is_readable(e_ADMIN.'sql/extended_'.$f.'.php'))
|
||||
if (is_readable(e_CORE.'sql/extended_'.$f.'.php'))
|
||||
{
|
||||
$ret .= ($this->process_sql($f)) ? LAN_CREATED." user_extended_{$f}<br />" : LAN_CREATED_FAILED." user_extended_{$f}<br />";
|
||||
}
|
||||
else
|
||||
{
|
||||
$ret .= str_replace('--FILE--',e_ADMIN.'sql/extended_'.$f.'.php',EXTLAN_78);
|
||||
$ret .= str_replace('--FILE--',e_CORE.'sql/extended_'.$f.'.php',EXTLAN_78);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1857,7 +1857,7 @@ class e_db_mysql
|
||||
}
|
||||
else
|
||||
{ // Need to try and find a table definition
|
||||
$searchArray = array(e_ADMIN.'sql/db_field_defs.php');
|
||||
$searchArray = array(e_CORE.'sql/db_field_defs.php');
|
||||
// e107::getPref() shouldn't be used inside db handler! See db_IsLang() comments
|
||||
$sqlFiles = (array) $this->getConfig()->get('e_sql_list', array()); // kill any PHP notices
|
||||
foreach ($sqlFiles as $p => $f)
|
||||
|
@@ -705,7 +705,7 @@ class e107plugin
|
||||
|
||||
function manage_extended_field_sql($action, $field_name)
|
||||
{
|
||||
$f = e_ADMIN.'sql/extended_'.preg_replace('/[^\w]/', '', $field_name).'.php'; // quick security, always good idea
|
||||
$f = e_CORE.'sql/extended_'.preg_replace('/[^\w]/', '', $field_name).'.php'; // quick security, always good idea
|
||||
|
||||
if(!is_readable($f)) return false;
|
||||
|
||||
|
Reference in New Issue
Block a user