[TikiWiki-commits] [Git][tikiwiki/tiki][28.x] [BP] Apply Feedback.php changes from 10a739749b38
"Baraka Kinywa \(@bkinywa24\) via TikiWiki-cvs" <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <68b7e1327a643_2cdd0181305@gitlab-sidekiq-low-urgency-cpu-bound-v2-6d5d96f55f-xx82m.mail> |
Baraka Kinywa pushed to branch 28.x at Tiki Wiki CMS Groupware / Tiki
Commits:
07824139 by Aksanti Bahiga at 2025-09-03T09:26:31+03:00
[BP] Apply Feedback.php changes from 10a739749b38
---
* Fix phpcs
* Apply Feedback.php changes from 10a739749b38
See merge request tikiwiki/tiki!8369
- - - - -
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/07824139e816fec060c2b655335b1d3b6eee4fbc
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/07824139e816fec060c2b655335b1d3b6eee4fbc
You're receiving this email because of your account on gitlab.com.
_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs