Display problems if goal status is above 100%.
Open core > global > plugins > donateWidget
Find:
number_format( 100 / \IPS\Settings::i()->dsb_goal_amount * \IPS\Settings::i()->dsb_donation_amount, 2, '.', '' )
Replace With:
( number_format( 100 / \IPS\Settings::i()->dsb_goal_amount * \IPS\Settings::i()->dsb_donation_amount, 2, '.', '' ) < 100 ? number_format( 100 / \IPS\Settings::i()->dsb_goal_amount * \IPS\Settings::i()->dsb_donation_amount, 2, '.', '' ) : 100 )
Recommended Comments
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.