1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 22:27:34 +02:00

Fixes #2270: Usersettings : Custom User Fields on Legacy themes.

Fixes #2165: Country field added (doesn't required database)
Fixes #1297: Extended fields failing
This commit is contained in:
Cameron
2017-01-23 17:54:43 -08:00
parent 3a0c353568
commit 28de9f2be1
7 changed files with 119 additions and 61 deletions

View File

@@ -89,6 +89,9 @@ class usersettings_front // Begin Usersettings rewrite.
else
{
global $sc_style;
$REQUIRED_FIELD = '';
$USER_EXTENDED_CAT = '';
$USEREXTENDED_FIELD = '';
$USERSETTINGS_MESSAGE = '';
$USERSETTINGS_MESSAGE_CAPTION = '';
$USERSETTINGS_EDIT_CAPTION = '';
@@ -97,6 +100,13 @@ class usersettings_front // Begin Usersettings rewrite.
include_once($coreTemplatePath); //correct way to load a core template.
e107::scStyle($sc_style);
$usersettings_shortcodes = e107::getScBatch('usersettings');
$usersettings_shortcodes->legacyTemplate = array(
'USER_EXTENDED_CAT' => $USER_EXTENDED_CAT,
'USEREXTENDED_FIELD' => $USEREXTENDED_FIELD,
'REQUIRED_FIELD' => $REQUIRED_FIELD
);
}
$this->sc = $usersettings_shortcodes;