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

{FORUM_NAME} is not filled in login mask when logging into a password protected forum

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 3.0.12-RC1
    • 3.0.11
    • Login, Styles
    • None
    • PHP Version 5.4.4
      Apache/2.4.2 (Win32) OpenSSL/1.0.1c PHP/5.4.4
      FireFox 16.0.1

      The variable

      {FORUM_NAME}

      in /template/login_forum.html is not filled with a value when seeing login mask wanting to log into a password protected forum.
      To fix that
      find in /includes/functions.php

      $template->assign_vars(array(
      'S_LOGIN_ACTION' => build_url(array('f')),
      'S_HIDDEN_FIELDS' => build_hidden_fields(array('f' => $forum_data['forum_id'])))
      );

      change it to
      $template->assign_vars(array(
      'S_LOGIN_ACTION' => build_url(array('f')),
      'S_HIDDEN_FIELDS' => build_hidden_fields(array('f' => $forum_data['forum_id'])),
      'FORUM_NAME' => $forum_data['forum_name'],
      ));

            bantu Andreas Fischer [X] (Inactive)
            Miriam Miriam [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: