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

Auto Update should only update minor versions

    Details

    • Type: Improvement
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.3.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      At present the Auto Updater will attempt to run even when the branch is different. ie you can run 3.3.0's Auto Updater on any previous version of phpBB even though there have obviously been changes to the core files.

      This has caused problems to users as can be seen in the support area. 

      I feel that the Auto Updater should only run when it is the same branch as the one installed thus removing any chance of it causing errors. 

      I do not know enough php to write this myself but have been told that something along these lines should work.

       

       

      {{$new = '3.3.0'; // Retrieve the new version from somewhere}}

      {{$new = explode('.', $new);}}

      {{$old = explode('.', PHPBB_VERSION);}}

      {{if ($new[0] != $old[0] || $new[1] != $old[1])}}

      {{{{{ }}}}

      {{     trigger_error('You can only automatically update minor versions of phpBB.');}}

      {}}

      {{ }}

      It would save user and support members frustration and hopefully allow smoother upgrading.{}

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              HiFiKabin HiFiKabin
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated: