Page MenuHomePhabricator

smallpatchInstallScript

Authored By
bzimport
Nov 21 2014, 8:00 PM
Size
1 KB
Referenced Files
None
Subscribers
None

smallpatchInstallScript

Index: config/index.php
===================================================================
RCS file: /root/phase3/config/index.php,v
retrieving revision 1.86
diff -u -p -r1.86 index.php
--- config/index.php 1 Dec 2004 13:15:12 -0000 1.86
+++ config/index.php 4 Dec 2004 13:47:25 -0000
@@ -246,7 +246,7 @@ $conf->raiseMemory = false;
if( empty( $memlimit ) ) {
print "<li>PHP is configured with no <tt>memory_limit</tt>.</li>\n";
} else {
- print "<li>PHP's <tt>memory_limit</tt> is " . htmlspecialchars( $memlimit ) . ". <b>If this is too low, installation may fail!</b> ";
+ print "<li>PHP's <tt>memory_limit</tt> is " . htmlspecialchars( $memlimit ) . ". ";
$n = IntVal( $memlimit );
if( preg_match( '/^([0-9]+)[Mm]$/', trim( $memlimit ), $m ) ) {
$n = IntVal( $m[1] * (1024*1024) );
@@ -254,7 +254,7 @@ if( empty( $memlimit ) ) {
if( $n < 20*1024*1024 ) {
print "Attempting to raise limit to 20M... ";
if( false === ini_set( "memory_limit", "20M" ) ) {
- print "failed.";
+ print "failed.<br /><b>" . htmlspecialchars( $memlimit ) . " seems too low, installation may fail!</b>";
} else {
$conf->raiseMemory = true;
print "ok.";
@@ -694,7 +694,7 @@ if( count( $errs ) ) {
<dd>
- <?php aField( $conf, "SysopName", "Sysop account name:", "" ) ?>
+ <?php aField( $conf, "SysopName", "Sysop&nbsp;account&nbsp;name:", "" ) ?>
</dd>
<dd>
<?php aField( $conf, "SysopPass", "password:", "password" ) ?>

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1291
Default Alt Text
smallpatchInstallScript (1 KB)

Event Timeline