From 1992410a7bd7f3b2a3a3059eb9978b9fcb1933e7 Mon Sep 17 00:00:00 2001 From: slawkens Date: Wed, 7 Oct 2020 23:36:10 +0200 Subject: [PATCH] This info is useless --- system/libs/pot/OTS_MonstersList.php | 4 ++-- system/libs/pot/OTS_SpellsList.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/system/libs/pot/OTS_MonstersList.php b/system/libs/pot/OTS_MonstersList.php index ffa8a648..8b1372cc 100644 --- a/system/libs/pot/OTS_MonstersList.php +++ b/system/libs/pot/OTS_MonstersList.php @@ -61,8 +61,8 @@ class OTS_MonstersList implements Iterator, Countable, ArrayAccess // check if monsters.xml exist if(!@file_exists($this->monstersPath . 'monsters.xml')) { - log_append('error.log', '[OTS_MonstersList.php] Fatal error: Cannot load monsters.xml. File does not exist. (' . $this->monstersPath . 'monsters.xml' . '). Error: ' . print_r(error_get_last(), true)); - throw new Exception('Error: Cannot load monsters.xml. File not found. More info in system/logs/error.log file.'); + log_append('error.log', '[OTS_MonstersList.php] Fatal error: Cannot load monsters.xml. File does not exist. (' . $this->monstersPath . 'monsters.xml' . ').'); + throw new Exception('Error: Cannot load monsters.xml. File not found.'); } // loads monsters mapping file diff --git a/system/libs/pot/OTS_SpellsList.php b/system/libs/pot/OTS_SpellsList.php index 918463ed..cfd1a581 100644 --- a/system/libs/pot/OTS_SpellsList.php +++ b/system/libs/pot/OTS_SpellsList.php @@ -95,8 +95,8 @@ class OTS_SpellsList implements IteratorAggregate, Countable { // check if spells.xml exist if(!@file_exists($file)) { - log_append('error.log', '[OTS_SpellsList.php] Fatal error: Cannot load spells.xml. File does not exist. (' . $file . '). Error: ' . print_r(error_get_last(), true)); - throw new Exception('Error: Cannot load spells.xml. File not found. More info in system/logs/error.log file.'); + log_append('error.log', '[OTS_SpellsList.php] Fatal error: Cannot load spells.xml. File does not exist. (' . $file . ').'); + throw new Exception('Error: Cannot load spells.xml. File not found.'); } // loads monsters mapping file