[svn r20161] Adding applyfilter to some forms see FS#4116

skala
Julio Montoya 16 years ago
parent c003f10222
commit e7f14f5b66
  1. 6
      main/admin/settings.php

@ -1,9 +1,9 @@
<?php // $Id: settings.php 20112 2009-04-27 08:10:13Z pcool $
<?php // $Id: settings.php 20161 2009-04-28 20:31:39Z juliomontoya $
/*
==============================================================================
Dokeos - elearning and course management software
Copyright (c) 2004-2008 Dokeos SPRL
Copyright (c) 2004-2009 Dokeos SPRL
Copyright (c) 2003 Ghent University
Copyright (c) Patrick Cool, Ghent University
Copyright (c) Julio Montoya, Dokeos
@ -182,9 +182,11 @@ if (!empty($_GET['category']) and !in_array($_GET['category'], array('Plugins',
case 'textfield' :
if ($row['variable']=='account_valid_duration') {
$form->addElement('text', $row['variable'], get_lang($row['comment']),array('maxlength'=>'5'));
$form->applyFilter($row['variable'],'html_filter');
$default_values[$row['variable']] = $row['selected_value'];
} else {
$form->addElement('text', $row['variable'], get_lang($row['comment']),$hideme);
$form->applyFilter($row['variable'],'html_filter');
$default_values[$row['variable']] = $row['selected_value'];
}

Loading…
Cancel
Save