Skip to content

Commit

Permalink
Minor bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nicodim99 committed Oct 5, 2017
1 parent fa1b770 commit c29afc2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion cms/fo.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@

$application->route('/robots.txt', function() {

header('HTTP/1.0 200 OK');
header('Content-type: text/plain');
\Cetera\Application::getInstance()->getServer()->getRobots();
echo \Cetera\Application::getInstance()->getServer()->getRobots();
return true;

} );
Expand Down
2 changes: 1 addition & 1 deletion cms/include/classes/Cetera/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ public function setRobots($value)
public function boArray()
{
$array = parent::boArray();
$array['robots'] = str_replace("\r",'\r',str_replace("\n",'\n',addslashes($this->getRobots())));
$array['robots'] = $this->getRobots();
return $array;
}

Expand Down
2 changes: 1 addition & 1 deletion cms/include/constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
**/

/** Версия */
define('VERSION', '3.38.3');
define('VERSION', '3.38.4');

/** Название продукта */
define('APP_NAME', 'Cetera CMS');
Expand Down
2 changes: 1 addition & 1 deletion cms/include/setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
$res = array();

if ($step == 9) {
set_time_limit(999999);
if (function_exists('set_time_limit')) set_time_limit(999999);

$res['success'] = true;
$res['error'] = false;
Expand Down

0 comments on commit c29afc2

Please sign in to comment.