Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions administrator/components/com_admin/src/Service/HTML/PhpSetting.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,18 @@ public function set($val)
return Text::_($val ? 'JYES' : 'JNO');
}

/**
* Method to generate a boolean message for a value
*
* @param boolean $val is the value set?
*
* @return string html code
*/
public function enabled($val)
{
return Text::_($val ? 'JENABLED' : 'JDISABLED');
}

/**
* Method to generate a string message for a value
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
<?php echo Text::_('COM_ADMIN_SESSION_AUTO_START'); ?>
</th>
<td>
<?php echo (int) $this->phpSettings['session.auto_start']; ?>
<?php echo HTMLHelper::_('phpsetting.enabled', $this->phpSettings['session.auto_start']); ?>
</td>
</tr>
<tr>
Expand Down