TickTackk
Well-known member
- Affected version
- 2.0.7
In file 
	
	
	
		
Will set the status for template modification to 
Fix would be to add this after
	
	
	
		
Result would be something like this:

				
			src\XF\Repository\TemplateModification.php at line 92
		PHP:
	
	                        $status[$id] = preg_match_all($modification['find'], $template, $null);false if \preg_match_all fails, as it should, but if it fails with the condition \preg_last_error() !== \PREG_NO_ERROR then no status is shown in the template modification log AND will cause the page to render nothing.Fix would be to add this after
src\XF\Repository\TemplateModification.php:92
		PHP:
	
	                        if ($status[$id] === false && \preg_last_error() !== \PREG_NO_ERROR) 
                        {
                            $status[$id] = 'error_invalid_regex';
                            break;
                        }Result would be something like this:

			
				Last edited by a moderator: 
			
		
	
								
								
									
	
								
							
							 
 
		 
 
		