Clean code.
This commit is contained in:
parent
11c3750690
commit
1d7c2f3b80
2 changed files with 2 additions and 9 deletions
|
@ -386,15 +386,8 @@ class App {
|
|||
$hrefs = [];
|
||||
|
||||
foreach ($requests as $req) {
|
||||
$type = $req["type"];
|
||||
$src_href = $req["href"];
|
||||
$width = $req["width"];
|
||||
$height = $req["height"];
|
||||
|
||||
$thumb = new Thumb($this);
|
||||
$thumb_href = $thumb->thumb($type, $src_href, $width, $height);
|
||||
|
||||
$hrefs[] = $thumb_href;
|
||||
$hrefs[] = $thumb->thumb($req["type"], $req["href"], $req["width"], $req["height"]);
|
||||
}
|
||||
|
||||
return $hrefs;
|
||||
|
|
|
@ -28,7 +28,7 @@ class Bootstrap {
|
|||
|
||||
putenv("LANG=en_US.UTF-8");
|
||||
setlocale(LC_CTYPE, "en_US.UTF-8");
|
||||
date_default_timezone_set("UTC");
|
||||
date_default_timezone_set(@date_default_timezone_get());
|
||||
|
||||
define("MIN_PHP_VERSION", "5.4.0");
|
||||
define("HAS_MIN_PHP_VERSION", version_compare(PHP_VERSION, MIN_PHP_VERSION) >= 0);
|
||||
|
|
Loading…
Add table
Reference in a new issue