This repository was archived by the owner on Sep 10, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ public function preDispatch()
98
98
$ user ->setExpirationSeconds (60 * Zend_Registry::get ('configGlobal ' )->session ->lifetime );
99
99
}
100
100
101
- if ($ user ->Dao == null )
101
+ if ($ user ->Dao == null && $ fc -> getRequest ()-> getControllerName () != ' install ' )
102
102
{
103
103
$ userModel = MidasLoader::loadModel ('User ' );
104
104
$ cookieData = $ this ->getRequest ()->getCookie ('midasUtil ' );
Original file line number Diff line number Diff line change @@ -133,7 +133,6 @@ protected function _initConfig()
133
133
'message ' => 'message ' ,
134
134
'datetime ' => 'timestamp ' ,
135
135
'module ' => 'module ' );
136
- $ writerDb = new Zend_Log_Writer_Db ($ db , 'errorlog ' , $ columnMapping );
137
136
if ($ configGlobal ->environment == 'production ' )
138
137
{
139
138
$ formatter = new Zend_Log_Formatter_Simple ();
@@ -162,6 +161,7 @@ protected function _initConfig()
162
161
if ($ configDatabase ->database ->adapter == 'PDO_MYSQL '
163
162
&& $ configDatabase ->database ->params ->password != 'set_your_password ' )
164
163
{
164
+ $ writerDb = new Zend_Log_Writer_Db ($ db , 'errorlog ' , $ columnMapping );
165
165
$ logger ->addWriter ($ writerDb );
166
166
$ logger ->setEventItem ('datetime ' , date ('Y-m-d H:i:s ' ));
167
167
$ logger ->setEventItem ('module ' , 'unknown ' );
You can’t perform that action at this time.
0 commit comments