Skip to content

Commit 98d6b45

Browse files
committed
removed wordwrap
1 parent 1966379 commit 98d6b45

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

webroot/api/notices/index.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,13 @@
44

55
require_once "../../../resources/autoload.php";
66

7-
if (isset($_GET["line_wrap"])) {
8-
$CHAR_WRAP = $_GET["line_wrap"];
9-
} else {
10-
$CHAR_WRAP = 80;
11-
}
12-
137
$notices = $SQL->getNotices();
148
$jsonArray = [];
159
foreach ($notices as $notice) {
1610
$formattedNotice = [
1711
"title" => $notice["title"],
1812
"date" => date('m-d-Y', strtotime($notice["date"])),
19-
"message" => wordwrap($notice["message"], $CHAR_WRAP)
13+
"message" => $notice["message"]
2014
];
2115
$jsonArray[] = $formattedNotice;
2216
}

0 commit comments

Comments
 (0)