phpBB

Code Changes

File: phpbb/event/md_exporter.php

  Unmodified   Added   Modified   Removed
Line 439Line 439
		$event_list = array();
$file_content = file_get_contents($this->path . $file);


		$event_list = array();
$file_content = file_get_contents($this->path . $file);


		$events = explode('<!-- EVENT ', $file_content);
// Remove the code before the first event
array_shift($events);
foreach ($events as $event)
{
$event = explode(' -->', $event, 2);
$event_list[] = array_shift($event);
}

		preg_match_all('/(?:{%|<!--) EVENT (.*) (?:%}|-->)/U', $file_content, $event_list);












		return $event_list;

		return $event_list[1];

	}

/**

	}

/**