mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 05:37:32 +02:00
Installation fix.
This commit is contained in:
@@ -694,6 +694,7 @@ e107::js('footer-inline', js());
|
||||
|
||||
// Get list of current extended fields
|
||||
$curList = $ue->user_extended_get_fieldlist();
|
||||
$curNames = array();
|
||||
foreach($curList as $c)
|
||||
{
|
||||
$curNames[] = $c['user_extended_struct_name'];
|
||||
@@ -728,7 +729,7 @@ e107::js('footer-inline', js());
|
||||
|
||||
foreach($preList as $k=>$a)
|
||||
{
|
||||
if($k !='version') // don't know why this is appearing in the array.
|
||||
if($k !== 'version') // don't know why this is appearing in the array.
|
||||
{
|
||||
$active = (in_array($a['name'], $curNames)) ? TRUE : FALSE;
|
||||
$txt .= $this->show_predefined_field($a,$active);
|
||||
|
@@ -988,7 +988,9 @@ class validatorClass
|
||||
// ...one and aren't otherwise defined.
|
||||
public static function validateFields(&$sourceFields, &$definitions, $addDefaults = FALSE)
|
||||
{
|
||||
global $tp, $pref;
|
||||
$tp = e107::getParser();
|
||||
$pref = e107::getPref();
|
||||
|
||||
$ret = array('data' => array(), 'failed' => array(), 'errors' => array());
|
||||
|
||||
foreach ($definitions as $dest => $defs)
|
||||
|
@@ -44,6 +44,7 @@ class UserSignupCest
|
||||
$I->click('register');
|
||||
|
||||
$I->dontSee('Unauthorized access!');
|
||||
$I->dontSee('Error');
|
||||
|
||||
}
|
||||
|
||||
|
12
install.php
12
install.php
@@ -44,7 +44,7 @@ unset($e_ROOT);
|
||||
class installLog
|
||||
{
|
||||
|
||||
const logFile = "e107InstallLog.log";
|
||||
const logFile = "e107Install.log";
|
||||
|
||||
|
||||
static function exceptionHandler(Exception $exception)
|
||||
@@ -53,7 +53,7 @@ class installLog
|
||||
self::add($message, "error");
|
||||
}
|
||||
|
||||
static function errorHandler($errno, $errstr, $errfile, $errline)
|
||||
static function errorHandler($errno=null, $errstr=null, $errfile=null, $errline=null)
|
||||
{
|
||||
|
||||
$error = "Error on line $errline in file ".$errfile." : ".$errstr;
|
||||
@@ -143,7 +143,7 @@ define("e_UC_NOBODY", 255);*/
|
||||
|
||||
define("E107_INSTALL",true);
|
||||
|
||||
if($_SERVER['QUERY_STRING'] !== "debug")
|
||||
if($_SERVER['QUERY_STRING'] !== "debug") // install.php?debug
|
||||
{
|
||||
error_reporting(0); // suppress all errors unless debugging.
|
||||
}
|
||||
@@ -159,13 +159,13 @@ if($_SERVER['QUERY_STRING'] === 'clear')
|
||||
|
||||
//error_reporting(E_ALL);
|
||||
|
||||
function e107_ini_set($var, $value)
|
||||
/*function e107_ini_set($var, $value)
|
||||
{
|
||||
if (function_exists('ini_set'))
|
||||
{
|
||||
ini_set($var, $value);
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
// setup some php options
|
||||
|
||||
@@ -198,7 +198,7 @@ if($inc_path[0] !== ".")
|
||||
{
|
||||
array_unshift($inc_path, ".");
|
||||
$inc_path = implode(PATH_SEPARATOR, $inc_path);
|
||||
e107_ini_set("include_path", $inc_path);
|
||||
ini_set("include_path", $inc_path);
|
||||
}
|
||||
unset($inc_path);
|
||||
|
||||
|
Reference in New Issue
Block a user