removed redundant code

This commit is contained in:
Matthew Vale
2015-12-31 16:33:19 +00:00
parent 8137300bb5
commit a5bb20c774

View File

@@ -33,8 +33,6 @@ if ($domains_processed == 1) {
$x = 0;
while (false !== ($file = readdir($backgrounds))) {
if ($file != "." AND $file != ".."){
$new_path = $dir.'/'.$file;
$level = explode('/',$new_path);
$ext = pathinfo($file, PATHINFO_EXTENSION);
if ($ext == "png" || $ext == "jpg" || $ext == "jpeg" || $ext == "gif") {
$x++;