openrat-cms

OpenRat Content Management System
git clone http://git.code.weiherhei.de/openrat-cms.git
Log | Files | Refs | README

commit b3558ab389ee0723c3916442520556108f3d0d0c
parent c266e1785667821bb1033a07bb36663a21849e99
Author: Jan Dankert <develop@jandankert.de>
Date:   Mon, 26 Oct 2020 09:07:36 +0100

Simplyfy code fragments.

Diffstat:
Mindex.php | 8++++----
Mmodules/cms/ui/UI.class.php | 2+-
2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/index.php b/index.php @@ -67,10 +67,10 @@ if (!headers_sent()) <p>Something went terribly wrong &#x1F61E;</p> - <?php // Display exceptions only in development mode, because they may contain sensitive internal information like passwords. - if (!defined('DEVELOPMENT') || DEVELOPMENT ) { ?> - <pre><?php echo $e->__toString(); ?></pre> - <?php } ?> + <pre><?php // Display exceptions only in development mode, because they may contain sensitive internal information like passwords. + if (!defined('DEVELOPMENT') || DEVELOPMENT ) { + echo $e->__toString(); } + ?></pre> </main> </body> diff --git a/modules/cms/ui/UI.class.php b/modules/cms/ui/UI.class.php @@ -70,7 +70,7 @@ class UI //Http::notAuthorized("You are not allowed to execute this action."); } catch (Exception $e) { Logger::warn( $e->__toString() ); - throw new LogicException("Internal CMS error: ".$e->__toString(),0, $e); + throw new LogicException("Internal CMS error",0, $e); } }