Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrammatiko committed May 31, 2017
1 parent b3730b7 commit d38061a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
2 changes: 1 addition & 1 deletion installation/model/setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ public function getPhpOptions()

$option = new stdClass;
$option->label = JText::sprintf('INSTL_WRITABLE', 'configuration.php');
$option->state = $writable;
$option->state = false; //$writable;
$option->notice = $option->state ? null : JText::_('INSTL_NOTICEYOUCANSTILLINSTALL');
$options[] = $option;

Expand Down
32 changes: 17 additions & 15 deletions installation/view/preinstall/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,21 +109,23 @@
</thead>
<tbody>
<?php foreach ($this->settings as $setting) : ?>
<tr>
<td>
<?php echo $setting->label; ?>
</td>
<td>
<span class="badge badge-success disabled">
<?php echo JText::_($setting->recommended ? 'JON' : 'JOFF'); ?>
</span>
</td>
<td>
<span class="badge badge-<?php echo ($setting->state === $setting->recommended) ? 'success' : 'warning'; ?>">
<?php echo JText::_($setting->state ? 'JON' : 'JOFF'); ?>
</span>
</td>
</tr>
<?php if ($setting->state !== $setting->recommended) : ?>
<tr>
<td>
<?php echo $setting->label; ?>
</td>
<td>
<span class="badge badge-success disabled">
<?php echo JText::_($setting->recommended ? 'JON' : 'JOFF'); ?>
</span>
</td>
<td>
<span class="badge badge-<?php echo ($setting->state === $setting->recommended) ? 'success' : 'warning'; ?>">
<?php echo JText::_($setting->state ? 'JON' : 'JOFF'); ?>
</span>
</td>
</tr>
<?php endif; ?>
<?php endforeach; ?>
</tbody>
<tfoot>
Expand Down

0 comments on commit d38061a

Please sign in to comment.