From 4c0079e1eaa68bc53ea8b5da71ac7231b8eb39ad Mon Sep 17 00:00:00 2001 From: Andrey Kutejko Date: Sun, 17 Aug 2014 09:08:10 +0300 Subject: [PATCH] cleanup --- ipf/command/migrate.php | 2 +- ipf/http/response/servererror.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ipf/command/migrate.php b/ipf/command/migrate.php index dda72ea..cb6b949 100644 --- a/ipf/command/migrate.php +++ b/ipf/command/migrate.php @@ -14,7 +14,7 @@ class IPF_Command_Migrate $paths[] = $app->getPath() . 'migrations'; } - $connection = IPF_ORM_Manager::connection()->getDbh(); + $connection = \PFF\Container::databaseConnection(); $m = new \PFF\Migrations\Migrations; $m->migrate($connection, $paths); } diff --git a/ipf/http/response/servererror.php b/ipf/http/response/servererror.php index 80a57a4..3c9717b 100644 --- a/ipf/http/response/servererror.php +++ b/ipf/http/response/servererror.php @@ -4,7 +4,7 @@ class IPF_HTTP_Response_ServerError extends IPF_HTTP_Response { function __construct($e, $mimetype=null) { - parent::__construct('

500 Server Error

Our apologies…

Please return later

', $mimetype); + parent::__construct('

500 Server Error

Our apologies…

Please return later

', $mimetype); $this->status_code = 500; } } -- 2.49.0