mirror of
https://github.com/e107inc/e107.git
synced 2025-08-11 17:14:42 +02:00
Fixed #128: Download Plugin - can't activate "limits"; minor additional
cleanup
This commit is contained in:
@@ -496,8 +496,9 @@ $columnInfo = array(
|
||||
$sql = e107::getDb();
|
||||
$ns = e107::getRender();
|
||||
$tp = e107::getParser();
|
||||
$pref = e107::getPref();
|
||||
|
||||
global $pref;
|
||||
//global $pref;
|
||||
|
||||
if ($sql->db_Select('userclass_classes','userclass_id, userclass_name'))
|
||||
{
|
||||
@@ -518,7 +519,7 @@ $columnInfo = array(
|
||||
";
|
||||
if(vartrue($pref['download_limits']) == 1)
|
||||
{
|
||||
$chk = "checked = 'checked'";
|
||||
$chk = " checked = 'checked'";
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -526,7 +527,7 @@ $columnInfo = array(
|
||||
}
|
||||
|
||||
$txt .= "
|
||||
<input type='checkbox' name='download_limits' {$chk}/> ".DOWLAN_125."
|
||||
<input type='checkbox' name='download_limits' value='on'{$chk}/> ".DOWLAN_125."
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
Reference in New Issue
Block a user