Merge pull request #13494 from owncloud/windows_warning
add a Windows warning
This commit is contained in:
commit
a87a2e8e2c
|
@ -81,6 +81,8 @@ $template->assign('onlyShareWithGroupMembers', \OC\Share\Share::shareWithGroupMe
|
||||||
$databaseOverload = (strpos(\OCP\Config::getSystemValue('dbtype'), 'sqlite') !== false);
|
$databaseOverload = (strpos(\OCP\Config::getSystemValue('dbtype'), 'sqlite') !== false);
|
||||||
$template->assign('databaseOverload', $databaseOverload);
|
$template->assign('databaseOverload', $databaseOverload);
|
||||||
|
|
||||||
|
// warn if Windows is used
|
||||||
|
$template->assign('WindowsWarning', OC_Util::runningOnWindows());
|
||||||
|
|
||||||
// add hardcoded forms from the template
|
// add hardcoded forms from the template
|
||||||
$forms = OC_App::getForms('admin');
|
$forms = OC_App::getForms('admin');
|
||||||
|
|
|
@ -10,13 +10,10 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
style('settings', 'settings');
|
style('settings', 'settings');
|
||||||
script('settings', 'settings');
|
script('settings', [ 'settings', 'admin', 'log'] );
|
||||||
script( "settings", "admin" );
|
script('core', ['multiselect', 'setupchecks']);
|
||||||
script( "settings", "log" );
|
|
||||||
script( 'core', 'multiselect' );
|
|
||||||
vendor_script('select2/select2');
|
vendor_script('select2/select2');
|
||||||
vendor_style('select2/select2');
|
vendor_style('select2/select2');
|
||||||
script('core', 'setupchecks');
|
|
||||||
|
|
||||||
$levels = array('Debug', 'Info', 'Warning', 'Error', 'Fatal');
|
$levels = array('Debug', 'Info', 'Warning', 'Error', 'Fatal');
|
||||||
$levelLabels = array(
|
$levelLabels = array(
|
||||||
|
@ -125,6 +122,20 @@ if ($_['databaseOverload']) {
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Windows Warning
|
||||||
|
if ($_['WindowsWarning']) {
|
||||||
|
?>
|
||||||
|
<div class="section">
|
||||||
|
<h2><?php p($l->t('Microsoft Windows Platform'));?></h2>
|
||||||
|
|
||||||
|
<p class="securitywarning">
|
||||||
|
<?php p($l->t('Your server is running on Microsoft Windows. We highly recommend Linux for optimal user experience.')); ?>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
|
||||||
// if module fileinfo available?
|
// if module fileinfo available?
|
||||||
if (!$_['has_fileinfo']) {
|
if (!$_['has_fileinfo']) {
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue