Moved fatalError() from Controller to Error class.
* Renamed the method to fatal(). * Added Error class, but I may be factoring it out and replacing it with strong dependency of PHP built-in Exceptions. * Cleaned up some other stuff too.
This commit is contained in:
parent
b1d7ef7645
commit
ea6930bc23
4 changed files with 66 additions and 34 deletions
|
@ -72,6 +72,10 @@ class Config
|
|||
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
Error::fatal('config.ini is either missing or unreadable');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue