Skip to content

Commit

Permalink
PHP7 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sergejey committed Feb 25, 2018
1 parent 462ff29 commit 8e58068
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion modules/application.class.php
Expand Up @@ -325,7 +325,7 @@ function sortFiles($a, $b) {
$days=array('Воскресенье','Понедельник','Вторник','Среда','Четверг','Пятница','Суббота');

$out['TODAY']=$days[date('w')].', '.date('d.m.Y');
Define(TODAY, $out['TODAY']);
Define('TODAY', $out['TODAY']);
$out['REQUEST_URI']=$_SERVER['REQUEST_URI'];

global $from_scene;
Expand Down
8 changes: 5 additions & 3 deletions modules/thumb/thumb.php
Expand Up @@ -2,7 +2,7 @@
/*
* @version 0.1 (auto-set)
*/
error_reporting(E_ALL & ~(E_STRICT | E_NOTICE));
//error_reporting(E_ALL & ~(E_STRICT | E_NOTICE));
chdir('../../');
include_once("./config.php");
include_once("./lib/loader.php");
Expand Down Expand Up @@ -289,7 +289,9 @@ function mjpeg_grab_frame($url) {
}
// Endof save

Header("Content-type:image/jpeg");
imageJpeg($new_image);

Header("Content-type:image/jpeg");
imageJpeg($new_image);


}

0 comments on commit 8e58068

Please sign in to comment.