Clean code.

This commit is contained in:
Lars Jung 2015-05-05 23:20:37 +02:00
parent 11c3750690
commit 1d7c2f3b80
2 changed files with 2 additions and 9 deletions

View file

@ -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;

View file

@ -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);