[TikiWiki-commits] [Git][tikiwiki/tiki][27.x] [BP] Apply Feedback.php changes from 10a739749b38
"ushindi bienvenu \(@usbbush\) via TikiWiki-cvs" <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <69caa09a4b946_3b18f16461670@gitlab-sidekiq-low-urgency-cpu-bound-v2-776c887fd4-x5xzb.mail> |
ushindi bienvenu pushed to branch 27.x at Tiki Wiki CMS Groupware / Tiki
Commits:
7bcf226e by NasserNgandu at 2026-03-30T16:03:27+00:00
[BP] Apply Feedback.php changes from 10a739749b38
---
* [BP] Apply Feedback.php changes from 10a739749b38
---
* Fix phpcs
* Apply Feedback.php changes from 10a739749b38
See merge request tikiwiki/tiki!8369
See merge request tikiwiki/tiki!9347
- - - - -
1 changed file:
- lib/core/Feedback.php
Changes:
=====================================
lib/core/Feedback.php
=====================================
@@ -65,6 +65,23 @@ class Feedback
die;
}
+ /**
+ * Redirect to a page with error feedback and Die
+ *
+ * @param string $message
+ * @param int $httpCode
+ *
+ * @throws Exception
+ */
+ public static function errorAndDie($message, $httpCode)
+ {
+ $smarty = TikiLib::lib('smarty');
+ $smarty->assign('errortype', $httpCode);
+ $smarty->assign('msg', $message);
+ http_response_code($httpCode);
+ $smarty->display("error.tpl");
+ die;
+ }
/**
* Add note feedback
*
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/7bcf226e2c4d847671d47302ab17e824d7333e30
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/7bcf226e2c4d847671d47302ab17e824d7333e30
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help
_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs