Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit d5dcd63

Browse files
committed
fix: Use native php function (not old SPIP function)
1 parent 1fa83bc commit d5dcd63

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

AdaptiveImages.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ public function deliverBkptImage($path)
424424
$file = '';
425425
}
426426
if (! $file or ! $mime) {
427-
http_status(404);
427+
\http_response_code(404);
428428
throw new InvalidArgumentException("Unable to find {$path} image");
429429
}
430430

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ function action_adapt_img_dist(){
123123
$AdaptiveImages->deliverBkptImage(_request('arg'));
124124
}
125125
catch (Exception $e){
126-
http_status(404);
126+
\http_response_code(404);
127127
die('Error : '.$e->getMessage());
128128
}
129129
exit;

0 commit comments

Comments
 (0)