Removed error page

This commit is contained in:
Diego Najar 2017-09-04 22:00:13 +02:00
parent 8e9578dcc4
commit b95759995b
2 changed files with 0 additions and 26 deletions

View File

@ -320,9 +320,6 @@ class dbPages extends dbJSON
$db = $this->getPublishedDB();
}
// Remove Error page from the list
unset($db['error']);
if ($amountOfItems==-1) {
return $db;
}

View File

@ -255,11 +255,6 @@ function install($adminPassword, $email, $timezone)
error_log($errorText, 0);
}
if(!mkdir(PATH_PAGES.'error', $dirpermissions, true)) {
$errorText = 'Error when trying to created the directory=>'.PATH_PAGES.'error';
error_log($errorText, 0);
}
if(!mkdir(PATH_PLUGINS_DATABASES.'pages', $dirpermissions, true)) {
$errorText = 'Error when trying to created the directory=>'.PATH_PLUGINS_DATABASES.'pages';
error_log($errorText, 0);
@ -303,20 +298,6 @@ function install($adminPassword, $email, $timezone)
// File pages.php
$data = array(
'error'=>array(
'description'=>$Language->get('Page not found'),
'username'=>'admin',
'tags'=>array(),
'status'=>'system',
'date'=>$currentDate,
'dateModified'=>'',
'allowComments'=>false,
'position'=>0,
'coverImage'=>'',
'md5file'=>'',
'category'=>'',
'uuid'=>md5(uniqid())
),
'about'=>array(
'description'=>$Language->get('About your site or yourself'),
'username'=>'admin',
@ -494,10 +475,6 @@ function install($adminPassword, $email, $timezone)
LOCK_EX
);
// File for error page
$data = 'Title: '.$Language->get('Error').PHP_EOL.'Content: '.PHP_EOL.$Language->get('installer-page-error-content');
file_put_contents(PATH_PAGES.'error'.DS.FILENAME, $data, LOCK_EX);
// File for about page
$data = 'Title: '.$Language->get('About').PHP_EOL.'Content: '.PHP_EOL.$Language->get('installer-page-about-content');
file_put_contents(PATH_PAGES.'about'.DS.FILENAME, $data, LOCK_EX);