phpBB

Code Changes

File: includes/ucp/ucp_prefs.php

  Unmodified   Added   Modified   Removed
Line 69Line 69
				* @var	array	data		Array with current ucp options data
* @var array error Array with list of errors
* @since 3.1.0-a1

				* @var	array	data		Array with current ucp options data
* @var array error Array with list of errors
* @since 3.1.0-a1

				* @changed 3.1.4-rc1 Added error variable to the event

				* @changed 3.1.4-RC1 Added error variable to the event

				*/
$vars = array('submit', 'data', 'error');
extract($phpbb_dispatcher->trigger_event('core.ucp_prefs_personal_data', compact($vars)));

				*/
$vars = array('submit', 'data', 'error');
extract($phpbb_dispatcher->trigger_event('core.ucp_prefs_personal_data', compact($vars)));

Line 86Line 86
					}

$error = array_merge(validate_data($data, array(

					}

$error = array_merge(validate_data($data, array(

						'dateformat'	=> array('string', false, 1, 30),

						'dateformat'	=> array('string', false, 1, 64),

						'lang'			=> array('language_iso_name'),
'tz' => array('timezone'),
)), $error);

						'lang'			=> array('language_iso_name'),
'tz' => array('timezone'),
)), $error);

Line 367Line 367
					}
${'s_sort_' . $sort_option . '_dir'} .= '</select>';
}

					}
${'s_sort_' . $sort_option . '_dir'} .= '</select>';
}

 

/**
* Run code before view form is displayed
*
* @event core.ucp_prefs_view_after
* @var bool submit Do we display the form only
* or did the user press submit
* @var array data Array with current ucp options data
* @var array sort_dir_text Array with sort dir language strings
* @var array limit_topic_days Topic ordering options
* @var array sort_by_topic_text Topic ordering language strings
* @var array sort_by_topic_sql Topic ordering sql
* @var array limit_post_days Post ordering options
* @var array sort_by_post_text Post ordering language strings
* @var array sort_by_post_sql Post ordering sql
* @var array _options Sort options
* @var string s_limit_topic_days Sort limit topic by days select box
* @var string s_sort_topic_key Sort topic key select box
* @var string s_sort_topic_dir Sort topic dir select box
* @var string s_limit_post_days Sort limit post by days select box
* @var string s_sort_post_key Sort post key select box
* @var string s_sort_post_dir Sort post dir select box
* @since 3.1.8-RC1
*/
$vars = array(
'submit',
'data',
'sort_dir_text',
'limit_topic_days',
'sort_by_topic_text',
'sort_by_topic_sql',
'limit_post_days',
'sort_by_post_text',
'sort_by_post_sql',
'_options',
's_limit_topic_days',
's_sort_topic_key',
's_sort_topic_dir',
's_limit_post_days',
's_sort_post_key',
's_sort_post_dir',
);
extract($phpbb_dispatcher->trigger_event('core.ucp_prefs_view_after', compact($vars)));


$template->assign_vars(array(
'ERROR' => (sizeof($error)) ? implode('<br />', $error) : '',


$template->assign_vars(array(
'ERROR' => (sizeof($error)) ? implode('<br />', $error) : '',