File tree 2 files changed +14
-8
lines changed
visualcomposer/Modules/System/Ajax
2 files changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -56,12 +56,15 @@ protected function listenAjax(Request $requestHelper)
56
56
protected function disableAjaxErrors (Request $ requestHelper )
57
57
{
58
58
if ($ requestHelper ->exists (VCV_ADMIN_AJAX_REQUEST )) {
59
- set_time_limit (120 );
59
+ // Silence required to avoid warnings in case if function is restricted
60
+ // @codingStandardsIgnoreStart
61
+ @set_time_limit (120 );
60
62
if (!vcvenv ('VCV_DEBUG ' )) {
61
- ini_set ('display_errors ' , 'Off ' );
62
- ini_set ('error_reporting ' , 0 );
63
- error_reporting (0 );
63
+ @ ini_set ('display_errors ' , 'Off ' );
64
+ @ ini_set ('error_reporting ' , 0 );
65
+ @ error_reporting (0 );
64
66
}
67
+ // @codingStandardsIgnoreEnd
65
68
}
66
69
}
67
70
}
Original file line number Diff line number Diff line change @@ -85,12 +85,15 @@ protected function renderResponse($response)
85
85
protected function disableAjaxErrors (Request $ requestHelper )
86
86
{
87
87
if ($ requestHelper ->isAjax ()) {
88
- set_time_limit (120 );
88
+ // Silence required to avoid warnings in case if function is restricted
89
+ // @codingStandardsIgnoreStart
90
+ @set_time_limit (120 );
89
91
if (!vcvenv ('VCV_DEBUG ' )) {
90
- ini_set ('display_errors ' , 'Off ' );
91
- ini_set ('error_reporting ' , 0 );
92
- error_reporting (0 );
92
+ @ ini_set ('display_errors ' , 'Off ' );
93
+ @ ini_set ('error_reporting ' , 0 );
94
+ @ error_reporting (0 );
93
95
}
96
+ // @codingStandardsIgnoreEnd
94
97
}
95
98
}
96
99
You can’t perform that action at this time.
0 commit comments