phpBB

Code Changes

File: phpbb/template/twig/extension.php

  Unmodified   Added   Modified   Removed
Line 146Line 146
			//  of items to grab (length)

// Start must always be the actual starting number for this calculation (not negative)

			//  of items to grab (length)

// Start must always be the actual starting number for this calculation (not negative)

			$start = ($start < 0) ? sizeof($item) + $start : $start;

			$start = ($start < 0) ? count($item) + $start : $start;

			$end = $end - $start;
}


			$end = $end - $start;
}


Line 172Line 172

$context_vars = $this->context->get_root_ref();



$context_vars = $this->context->get_root_ref();


		if (isset($context_vars['L_' . $key]))

		if (is_string($key) && isset($context_vars['L_' . $key]))

		{
return $context_vars['L_' . $key];
}

		{
return $context_vars['L_' . $key];
}