Brought cron upload tag handling inline with everything else
This commit is contained in:
		
							parent
							
								
									e92ac10349
								
							
						
					
					
						commit
						3e2a0ea3b5
					
				| @ -351,19 +351,9 @@ class CronUploader extends Extension | |||||||
|         foreach (new RecursiveIteratorIterator($ite) as $fullpath=>$cur) { |         foreach (new RecursiveIteratorIterator($ite) as $fullpath=>$cur) { | ||||||
|             if (!is_link($fullpath) && !is_dir($fullpath)) { |             if (!is_link($fullpath) && !is_dir($fullpath)) { | ||||||
|                 $pathinfo = pathinfo($fullpath); |                 $pathinfo = pathinfo($fullpath); | ||||||
|                 $matches = []; |  | ||||||
| 
 | 
 | ||||||
|                 if (preg_match("/\d+ - (.*)\.([a-zA-Z]+)/", $pathinfo ["basename"], $matches)) { |                 $relativePath = substr($fullpath,strlen($base)); | ||||||
|                     $tags = $matches [1]; |                 $tags = path_to_tags($relativePath); | ||||||
|                 } else { |  | ||||||
|                     $tags = $subdir; |  | ||||||
|                     $tags = str_replace("/", " ", $tags); |  | ||||||
|                     $tags = str_replace("__", " ", $tags); |  | ||||||
|                     if ($tags == "") { |  | ||||||
|                         $tags = " "; |  | ||||||
|                     } |  | ||||||
|                     $tags = trim($tags); |  | ||||||
|                 } |  | ||||||
| 
 | 
 | ||||||
|                 $img = [ |                 $img = [ | ||||||
|                         0 => $fullpath, |                         0 => $fullpath, | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user