Skip to content

Commit 4af6f84

Browse files
authored
[6.0] php settings enabled/disabled (joomla#46411)
1 parent 089a9d3 commit 4af6f84

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

administrator/components/com_admin/src/Service/HTML/PhpSetting.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,18 @@ public function set($val)
4747
return Text::_($val ? 'JYES' : 'JNO');
4848
}
4949

50+
/**
51+
* Method to generate a boolean message for a value
52+
*
53+
* @param boolean $val is the value set?
54+
*
55+
* @return string html code
56+
*/
57+
public function enabled($val)
58+
{
59+
return Text::_($val ? 'JENABLED' : 'JDISABLED');
60+
}
61+
5062
/**
5163
* Method to generate a string message for a value
5264
*

administrator/components/com_admin/tmpl/sysinfo/default_phpsettings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
<?php echo Text::_('COM_ADMIN_SESSION_AUTO_START'); ?>
110110
</th>
111111
<td>
112-
<?php echo (int) $this->phpSettings['session.auto_start']; ?>
112+
<?php echo HTMLHelper::_('phpsetting.enabled', $this->phpSettings['session.auto_start']); ?>
113113
</td>
114114
</tr>
115115
<tr>

0 commit comments

Comments
 (0)