We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1966379 commit 98d6b45Copy full SHA for 98d6b45
webroot/api/notices/index.php
@@ -4,19 +4,13 @@
4
5
require_once "../../../resources/autoload.php";
6
7
-if (isset($_GET["line_wrap"])) {
8
- $CHAR_WRAP = $_GET["line_wrap"];
9
-} else {
10
- $CHAR_WRAP = 80;
11
-}
12
-
13
$notices = $SQL->getNotices();
14
$jsonArray = [];
15
foreach ($notices as $notice) {
16
$formattedNotice = [
17
"title" => $notice["title"],
18
"date" => date('m-d-Y', strtotime($notice["date"])),
19
- "message" => wordwrap($notice["message"], $CHAR_WRAP)
+ "message" => $notice["message"]
20
];
21
$jsonArray[] = $formattedNotice;
22
}
0 commit comments