Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-9341

Incorrectly named template vars

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 3.1.0-a1
    • 3.0.x
    • Other
    • None

      In functions.php:

      		$tpl_prefix . 'BASE_URL'		=> $base_url,
      		'A_' . $tpl_prefix . 'BASE_URL'	=> addslashes($base_url),

      and:

      		$tpl_prefix . 'PREVIOUS_PAGE'	=> ($on_page == 1) ? '' : $base_url . "{$url_delim}start=" . (($on_page - 2) * $per_page),
      		$tpl_prefix . 'NEXT_PAGE'		=> ($on_page == $total_pages) ? '' : $base_url . "{$url_delim}start=" . ($on_page * $per_page),

      Seeing as they hold URIs, I believe they should be prefixed with U_ in the case of those currently without a prefix and UA_ for the one currently prefixed with only A_.

            dhruv.goel92 Dhruv Goel [X] (Inactive)
            Thatbitextra Thatbitextra [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: