config.inc.php.new renamed in config.inc.default.php

This commit is contained in:
Maryana Rozhankivska 2014-04-22 20:58:40 +03:00
parent a4a870e1ec
commit 43c7b978c3
3 changed files with 3 additions and 10 deletions

View File

@ -101,7 +101,7 @@ class Poche
public function configFileIsAvailable() { public function configFileIsAvailable() {
if (! self::$configFileAvailable) { if (! self::$configFileAvailable) {
$this->notInstalledMessage[] = 'You have to rename inc/poche/config.inc.php.new to inc/poche/config.inc.php.'; $this->notInstalledMessage[] = 'You have to copy (don\'t just rename!) inc/poche/config.inc.default.php to inc/poche/config.inc.php.';
return false; return false;
} }
@ -834,13 +834,6 @@ class Poche
*/ */
public function import() { public function import() {
if (!defined('IMPORT_LIMIT')) {
define('IMPORT_LIMIT', 5);
}
if (!defined('IMPORT_DELAY')) {
define('IMPORT_DELAY', 5);
}
if ( isset($_FILES['file']) ) { if ( isset($_FILES['file']) ) {
Tools::logm('Import stated: parsing file'); Tools::logm('Import stated: parsing file');

View File

@ -43,7 +43,7 @@ if (! file_exists(INCLUDES . '/poche/config.inc.php')) {
Poche::$configFileAvailable = false; Poche::$configFileAvailable = false;
} else { } else {
require_once INCLUDES . '/poche/config.inc.php'; require_once INCLUDES . '/poche/config.inc.php';
require_once INCLUDES . '/poche/config.inc.php.new'; require_once INCLUDES . '/poche/config.inc.default.php';
} }
if (Poche::$configFileAvailable && DOWNLOAD_PICTURES) { if (Poche::$configFileAvailable && DOWNLOAD_PICTURES) {

2
install/index.php Normal file → Executable file
View File

@ -53,7 +53,7 @@ else if (isset($_POST['install'])) {
else { else {
$continue = true; $continue = true;
// Create config.inc.php // Create config.inc.php
if (!copy('inc/poche/config.inc.php.new', 'inc/poche/config.inc.php')) { if (!copy('inc/poche/config.inc.default.php', 'inc/poche/config.inc.php')) {
$errors[] = 'Installation aborted, impossible to create inc/poche/config.inc.php file. Maybe you don\'t have write access to create it.'; $errors[] = 'Installation aborted, impossible to create inc/poche/config.inc.php file. Maybe you don\'t have write access to create it.';
$continue = false; $continue = false;
} }