removed redundant code
This commit is contained in:
@@ -33,8 +33,6 @@ if ($domains_processed == 1) {
|
|||||||
$x = 0;
|
$x = 0;
|
||||||
while (false !== ($file = readdir($backgrounds))) {
|
while (false !== ($file = readdir($backgrounds))) {
|
||||||
if ($file != "." AND $file != ".."){
|
if ($file != "." AND $file != ".."){
|
||||||
$new_path = $dir.'/'.$file;
|
|
||||||
$level = explode('/',$new_path);
|
|
||||||
$ext = pathinfo($file, PATHINFO_EXTENSION);
|
$ext = pathinfo($file, PATHINFO_EXTENSION);
|
||||||
if ($ext == "png" || $ext == "jpg" || $ext == "jpeg" || $ext == "gif") {
|
if ($ext == "png" || $ext == "jpg" || $ext == "jpeg" || $ext == "gif") {
|
||||||
$x++;
|
$x++;
|
||||||
|
|||||||
Reference in New Issue
Block a user