From 63756b23d98b34208294045f5513267e9e88253d Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Thu, 6 Aug 2015 21:07:28 +0200 Subject: [PATCH] Spell/Tooltips * only trim floats, when in topLevel while parsing tooltips * there is still an issue, where html-code gets returned from lower levels, screwing the eval() should probably not bulk-handle all spellVars/formulas/variables on top level, but one after another --- includes/types/spell.class.php | 22 +++++++++++----------- localization/lang.class.php | 4 ++-- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/includes/types/spell.class.php b/includes/types/spell.class.php index a172c597..50102609 100644 --- a/includes/types/spell.class.php +++ b/includes/types/spell.class.php @@ -789,7 +789,7 @@ class SpellList extends BaseType // since this function may be called recursively, there are cases, where the already evaluated string is tried to be evaled again, throwing parse errors // todo (med): also quit, if we replaced vars with non-interactive text - if (strstr($formula, '')) + if (strstr($formula, '') || strstr($formula, '