phpBB

Code Changes

File: phpbb/event/md_exporter.php

  Unmodified   Added   Modified   Removed
Line 389Line 389
			$files = explode("\n    + ", $file_details);
foreach ($files as $file)
{

			$files = explode("\n    + ", $file_details);
foreach ($files as $file)
{

 
				if (!preg_match('#^([^ ]+)( \([0-9]+\))?$#', $file))
{
throw new \LogicException("Invalid event instances for file '{$file}' found for event '{$this->current_event}'", 1);
}

list($file) = explode(" ", $file);


				if (!file_exists($this->path . $file) || substr($file, -5) !== '.html')
{

				if (!file_exists($this->path . $file) || substr($file, -5) !== '.html')
{

					throw new \LogicException("Invalid file '{$file}' not found for event '{$this->current_event}'", 1);

					throw new \LogicException("Invalid file '{$file}' not found for event '{$this->current_event}'", 2);

				}

if (($this->filter !== 'adm') && strpos($file, 'styles/prosilver/template/') === 0)

				}

if (($this->filter !== 'adm') && strpos($file, 'styles/prosilver/template/') === 0)

Line 404Line 411
				}
else
{

				}
else
{

					throw new \LogicException("Invalid file '{$file}' not found for event '{$this->current_event}'", 2);

					throw new \LogicException("Invalid file '{$file}' not found for event '{$this->current_event}'", 3);

				}

$this->events_by_file[$file][] = $this->current_event;

				}

$this->events_by_file[$file][] = $this->current_event;

Line 424Line 431
		}
else
{

		}
else
{

			throw new \LogicException("Invalid file list found for event '{$this->current_event}'", 2);

			throw new \LogicException("Invalid file list found for event '{$this->current_event}'", 1);

		}

return $files_list;

		}

return $files_list;