Commits

Juan David Rodriguez Ramirez committed 3edc204

solutionn error message in restored #4

Comments (0)

Files changed (1)

controllers/DefaultController.php

                         $this->execZipFile($this->getPath() . basename($file));
                         Yii::app()->user->setFlash('success', JBackupTranslator::t('backup','Successfully restored the backup file:',array('{backup}'=>basename($file))));
                     }catch(Exception $e){
-                        Yii::app()->user->setFlash('error',$e() /*JBackupTranslator::t('backup','Unable to restore backup correctly:',array('{backup}'=>basename($file)))*/);
+                        Yii::app()->user->setFlash('error',$e->getMessage()) /*JBackupTranslator::t('backup','Unable to restore backup correctly:',array('{backup}'=>basename($file)))*/);
                     }
                 }
 		$this->redirect(array('index'));