From: Andrey Kutejko Date: Sun, 17 Aug 2014 06:08:10 +0000 (+0300) Subject: cleanup X-Git-Tag: 0.6~194 X-Git-Url: https://git.andy128k.dev/?a=commitdiff_plain;h=4c0079e1eaa68bc53ea8b5da71ac7231b8eb39ad;p=ipf.git cleanup --- 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; } }