"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "core-bundle/src/Resources/contao/modules/ModuleCloseAccount.php" between
contao-4.9.11.tar.gz and contao-4.9.12.tar.gz

About: Contao (fka TYPOlight) is a content management system (CMS). Long-term support (LTS).

ModuleCloseAccount.php  (contao-4.9.11):ModuleCloseAccount.php  (contao-4.9.12)
skipping to change at line 65 skipping to change at line 65
return parent::generate(); return parent::generate();
} }
/** /**
* Generate the module * Generate the module
*/ */
protected function compile() protected function compile()
{ {
$this->import(FrontendUser::class, 'User'); $this->import(FrontendUser::class, 'User');
$this->loadDataContainer('tl_member');
// Initialize the password widget // Initialize the password widget
$arrField = array $arrField = $GLOBALS['TL_DCA']['tl_member']['fields']['password']
( ;
'name' => 'password', $arrField['name'] = 'password';
'inputType' => 'text', $arrField['eval']['hideInput'] = true;
'label' => $GLOBALS['TL_LANG']['MSC']['password'][0],
'eval' => array('hideInput'=>true, 'preserveTags'=>true,
'mandatory'=>true, 'required'=>true)
);
$objWidget = new FormTextField(FormTextField::getAttributesFromDc a($arrField, $arrField['name'])); $objWidget = new FormTextField(FormTextField::getAttributesFromDc a($arrField, $arrField['name']));
$objWidget->rowClass = 'row_0 row_first even'; $objWidget->rowClass = 'row_0 row_first even';
$strFormId = 'tl_close_account_' . $this->id; $strFormId = 'tl_close_account_' . $this->id;
// Validate widget // Validate widget
if (Input::post('FORM_SUBMIT') == $strFormId) if (Input::post('FORM_SUBMIT') == $strFormId)
{ {
$objWidget->validate(); $objWidget->validate();
 End of changes. 2 change blocks. 
8 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)