Installer markup cleanup
The template assumed the messages to be arrays, though only one of them was one, and that actually seems to be a mixup from the smartification
This commit is contained in:
@@ -240,28 +240,8 @@ if ( (int)$serendipity['GET']['step'] == 0 ) {
|
|||||||
|
|
||||||
$basewritable = False;
|
$basewritable = False;
|
||||||
if ( is_writable($basedir) ) {
|
if ( is_writable($basedir) ) {
|
||||||
$data['installerResultDiagnose_WRITABLE'][] = serendipity_installerResultDiagnose(S9Y_I_SUCCESS, WRITABLE);
|
$data['installerResultDiagnose_BASE_WRITABLE'] = serendipity_installerResultDiagnose(S9Y_I_SUCCESS, WRITABLE);
|
||||||
$basewritable = True;
|
$basewritable = True;
|
||||||
} else {
|
|
||||||
#Figure out if we already have all we need
|
|
||||||
#PATH_SMARTY_COMPILE/
|
|
||||||
#uploads/
|
|
||||||
#archives/
|
|
||||||
#.htaccess
|
|
||||||
#serendipity_config_local.inc.php
|
|
||||||
# For completeness we could test to make sure the directories
|
|
||||||
# really are directories, but that's probably overkill
|
|
||||||
foreach (array('archives/', PATH_SMARTY_COMPILE . '/', 'uploads/', '.htaccess', 'serendipity_config_local.inc.php') as $path) {
|
|
||||||
if (!is_writeable($basedir . $path)) {
|
|
||||||
$data['installerResultDiagnose_WRITABLE'][] = serendipity_installerResultDiagnose(S9Y_I_ERROR, NOT_WRITABLE);
|
|
||||||
$showWritableNote = true;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!$showWritableNote) {
|
|
||||||
$data['installerResultDiagnose_WRITABLE'][] = serendipity_installerResultDiagnose(S9Y_I_SUCCESS, WRITABLE);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( is_writable($basedir . PATH_SMARTY_COMPILE) ) {
|
if ( is_writable($basedir . PATH_SMARTY_COMPILE) ) {
|
||||||
|
|||||||
@@ -165,64 +165,66 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<h4>{$CONST.PERMISSIONS}</h4>
|
<table>
|
||||||
|
<caption>{$CONST.PERMISSIONS}</caption>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>Directory</th> {* i18n *}
|
||||||
|
<th>{$CONST.PERMISSIONS}</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td><h5>{$basedir}</h5></td>
|
||||||
|
<td>{$installerResultDiagnose_BASE_WRITABLE}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><h5>{$basedir}{$CONST.PATH_SMARTY_COMPILE}</h5></td>
|
||||||
|
<td>{$installerResultDiagnose_COMPILE}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><h5>{$basedir}archives/</h5></td>
|
||||||
|
<td>{$installerResultDiagnose_ARCHIVES}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><h5>{$basedir}plugins</h5></td>
|
||||||
|
<td>{$installerResultDiagnose_PLUGINS}</td>
|
||||||
|
</tr>
|
||||||
|
{if $is_dir_uploads}
|
||||||
|
<tr>
|
||||||
|
<td><h5>{$basedir}uploads/</h5></td>
|
||||||
|
<td>{$installerResultDiagnose_UPLOADS}</td>
|
||||||
|
</tr>
|
||||||
|
{/if}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
{if $showWritableNote}
|
||||||
|
<span class="msg_notice">{$CONST.PROBLEM_PERMISSIONS_HOWTO|sprintf:'chmod 1777'}</span>
|
||||||
|
{/if}
|
||||||
|
|
||||||
<h5>{$basedir}</h5>
|
<table>
|
||||||
|
<caption>Executables</caption> {* i18n *}
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>Program</th> {* i18n *}
|
||||||
|
<th>Executable?</th> {* i18n *}
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td><h5>Execute Imagemagick binary</h5></td>
|
||||||
|
<td>{$installerResultDiagnose_IMB}</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
<ul class="plainList">
|
</tbody>
|
||||||
{foreach $installerResultDiagnose_WRITABLE AS $fwrite}
|
</table>
|
||||||
<li>{$fwrite}</li>
|
|
||||||
{/foreach}
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<h5>{$basedir} {$CONST.PATH_SMARTY_COMPILE}</h5>
|
|
||||||
|
|
||||||
<ul class="plainList">
|
|
||||||
{foreach $installerResultDiagnose_COMPILE AS $compile}
|
|
||||||
<li>{$compile}</li>
|
|
||||||
{/foreach}
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<h5>{$basedir}archives/</h5>
|
|
||||||
|
|
||||||
<ul class="plainList">
|
|
||||||
{foreach $installerResultDiagnose_ARCHIVES AS $archives}
|
|
||||||
<li>{$archives}</li>
|
|
||||||
{/foreach}
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<h5>{$basedir}plugins/</h5>
|
|
||||||
|
|
||||||
<ul class="plainList">
|
|
||||||
{foreach $installerResultDiagnose_PLUGINS AS $plugins}
|
|
||||||
<li>{$plugins}</li>
|
|
||||||
{/foreach}
|
|
||||||
</ul>
|
|
||||||
{if $is_dir_uploads}
|
|
||||||
<h5>{$basedir}uploads/</h5>
|
|
||||||
|
|
||||||
<ul class="plainList">
|
|
||||||
{foreach $installerResultDiagnose_UPLOADS AS $uploads}
|
|
||||||
<li>{$uploads}</li>
|
|
||||||
{/foreach}
|
|
||||||
</ul>
|
|
||||||
{/if}
|
|
||||||
{if $is_imb_executable}
|
|
||||||
<h5>Execute Imagemagick binary</h5>
|
|
||||||
|
|
||||||
<ul class="plainList">
|
|
||||||
{foreach $installerResultDiagnose_IMB AS $im_binary}
|
|
||||||
<li>{$im_binary}</li>
|
|
||||||
{/foreach}
|
|
||||||
</ul>
|
|
||||||
{/if}
|
|
||||||
{if $showWritableNote}
|
|
||||||
<span class="msg_notice">{$CONST.PROBLEM_PERMISSIONS_HOWTO|sprintf:'chmod 1777'}</span>
|
|
||||||
{/if}
|
|
||||||
{if $errorCount > 0}
|
{if $errorCount > 0}
|
||||||
|
<hr />
|
||||||
<span class="msg_error">{$CONST.PROBLEM_DIAGNOSTIC}</span>
|
<span class="msg_error">{$CONST.PROBLEM_DIAGNOSTIC}</span>
|
||||||
|
<div class="form_buttons">
|
||||||
<a class="block_level" href="serendipity_admin.php">{$CONST.RECHECK_INSTALLATION}</a>
|
<a class="block_level" href="serendipity_admin.php">{$CONST.RECHECK_INSTALLATION}</a>
|
||||||
|
</div>
|
||||||
{else}
|
{else}
|
||||||
<p><strong>{$CONST.SELECT_INSTALLATION_TYPE}:</strong></p>
|
<p><strong>{$CONST.SELECT_INSTALLATION_TYPE}:</strong></p>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user