Notifications Error
-
Issue:
When using either'
or"
in the message template, a notice will trigger an error and is not saved.Solution:
Open the myCRED-addon-notifications.php file located inplugins/mycred/add-ons/notifications/
and make sure the following three lines are correct:On line 74 your code should be:
foreach ( (array) $notices as $notice ) {
On line 77 your code should be:
echo '<script type="text/javascript">(function(jQuery){jQuery.noticeAdd({ text: "' . $notice . '",stay: ' . $stay . '});})(jQuery);</script>';
And finally on 237 your code is:
$notices[] = addslashes( $notice['message'] );
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Notifications Error’ is closed to new replies.