Skip to content

Commit b70e041

Browse files
committed
Remove _responseTTL from all controllers
1 parent a2cb1ca commit b70e041

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+0
-46
lines changed

src/controllers/Comment/Create.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ public function &run(Router &$router, View &$view, array &$args) {
4545

4646
$model->_responseCode = $code;
4747
$model->_responseHeaders["Content-Type"] = $view->getMimeType();
48-
$model->_responseTTL = 0;
4948

5049
if (!empty($model->origin) && $code >= 300 && $code <= 399) {
5150
$model->_responseHeaders['Location'] = $model->origin;

src/controllers/Comment/Delete.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ public function &run(Router &$router, View &$view, array &$args) {
5959

6060
$model->_responseCode = ($model->acl_allowed ? 200 : 403);
6161
$model->_responseHeaders["Content-Type"] = $view->getMimeType();
62-
$model->_responseTTL = 0;
6362

6463
return $model;
6564
}

src/controllers/Comment/Edit.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ public function &run( Router &$router, View &$view, array &$args ) {
8989

9090
$model->_responseCode = ( $model->acl_allowed ? 200 : 403 );
9191
$model->_responseHeaders[ 'Content-Type' ] = $view->getMimeType();
92-
$model->_responseTTL = 0;
9392

9493
return $model;
9594
}

src/controllers/Credits.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ public function &run(Router &$router, View &$view, array &$args) {
2121

2222
$model->_responseCode = 200;
2323
$model->_responseHeaders["Content-Type"] = $view->getMimeType();
24-
$model->_responseTTL = 0;
2524

2625
return $model;
2726

src/controllers/Discord.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ public function &run( Router &$router, View &$view, array &$args ) {
2626

2727
$model->_responseCode = 200;
2828
$model->_responseHeaders[ 'Content-Type' ] = $view->getMimeType();
29-
$model->_responseTTL = 0;
3029

3130
return $model;
3231

src/controllers/Document/Create.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ public function &run(Router &$router, View &$view, array &$args) {
4040

4141
$model->_responseCode = ($model->acl_allowed ? 200 : 403);
4242
$model->_responseHeaders["Content-Type"] = $view->getMimeType();
43-
$model->_responseTTL = 0;
4443

4544
return $model;
4645

src/controllers/Document/Delete.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ public function &run(Router &$router, View &$view, array &$args) {
5454

5555
$model->_responseCode = ($model->acl_allowed ? 200 : 403);
5656
$model->_responseHeaders["Content-Type"] = $view->getMimeType();
57-
$model->_responseTTL = 0;
5857

5958
return $model;
6059

src/controllers/Document/Edit.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ public function &run(Router &$router, View &$view, array &$args) {
6565

6666
$model->_responseCode = ($model->acl_allowed ? 200 : 403);
6767
$model->_responseHeaders["Content-Type"] = $view->getMimeType();
68-
$model->_responseTTL = 0;
6968

7069
return $model;
7170

src/controllers/Document/Index.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ public function &run(Router &$router, View &$view, array &$args) {
9595

9696
$model->_responseCode = 200;
9797
$model->_responseHeaders["Content-Type"] = $view->getMimeType();
98-
$model->_responseTTL = 0;
9998

10099
return $model;
101100

src/controllers/Document/Popular.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ public function &run(Router &$router, View &$view, array &$args) {
1818

1919
$model->_responseCode = 200;
2020
$model->_responseHeaders["Content-Type"] = $view->getMimeType();
21-
$model->_responseTTL = 0;
2221

2322
return $model;
2423

0 commit comments

Comments
 (0)