浏览代码

removed redundant code

Matthew Vale 9 年之前
父节点
当前提交
dda69721b4
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      themes/enhanced/app_defaults.php

+ 0 - 2
themes/enhanced/app_defaults.php

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