| @@ 585-590 (lines=6) @@ | ||
| 582 | { |
|
| 583 | global $context, $scripturl, $txt; |
|
| 584 | ||
| 585 | if (!empty($context['saved_successful'])) |
|
| 586 | echo ' |
|
| 587 | <div class="infobox">', $txt['settings_saved'], '</div>'; |
|
| 588 | ||
| 589 | elseif (!empty($context['could_not_save'])) |
|
| 590 | echo ' |
|
| 591 | <div class="errorbox">', $txt['admin_agreement_not_saved'], '</div>'; |
|
| 592 | ||
| 593 | // Warning for if the file isn't writable. |
|
| @@ 729-734 (lines=6) @@ | ||
| 726 | { |
|
| 727 | global $context, $txt, $scripturl; |
|
| 728 | ||
| 729 | if (!empty($context['saved_successful'])) |
|
| 730 | echo ' |
|
| 731 | <div class="infobox">', $txt['settings_saved'], '</div>'; |
|
| 732 | elseif (!empty($context['saved_failed'])) |
|
| 733 | echo ' |
|
| 734 | <div class="errorbox">', sprintf($txt['settings_not_saved'], $context['saved_failed']), '</div>'; |
|
| 735 | ||
| 736 | if (!empty($context['settings_pre_javascript'])) |
|
| 737 | echo ' |
|