phpBB

Code Changes

File: phpbb/event/php_exporter.php

  Unmodified   Added   Modified   Removed
Line 510Line 510
	/**
* Find the "@changed" Information lines
*

	/**
* Find the "@changed" Information lines
*

	* @param string $tag_name Should be 'changed' or 'change'

	* @param string $tag_name Should be 'change', not 'changed'

	* @return array Absolute line numbers
* @throws \LogicException
*/

	* @return array Absolute line numbers
* @throws \LogicException
*/

Line 658Line 658
	{
$match = array();
$line = str_replace("\t", ' ', ltrim($line, "\t "));

	{
$match = array();
$line = str_replace("\t", ' ', ltrim($line, "\t "));

		preg_match('#^\* @change(d)? (\d+\.\d+\.\d+(?:-(?:a|b|RC|pl)\d+)?)( (?:.*))?$#', $line, $match);

		preg_match('#^\* @changed (\d+\.\d+\.\d+(?:-(?:a|b|RC|pl)\d+)?)( (?:.*))?$#', $line, $match);

		if (!isset($match[2]))
{
throw new \LogicException("Invalid '@changed' information for event "

		if (!isset($match[2]))
{
throw new \LogicException("Invalid '@changed' information for event "