Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-9341

Incorrectly named template vars

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Trivial
    • Resolution: Fixed
    • 3.0.x
    • 3.1.0-a1
    • Other
    • None

    Description

      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_.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: