original_string: public function upgrade_environment_page($release, $envstatus, $environment_results) {
          global $CFG;
          $output = '';
  
          $output .= $this->header();
          $output .= $this->heading("Moodle $release");
          $output .= $this->release_notes_link();
          $output .= $this->environment_check_table($envstatus, $environment_results);
  
          if (!$envstatus) {
              $output .= $this->upgrade_reload(new moodle_url($this->page->url, array('confirmupgrade' => 1, 'cache' => 0)));
  
          } else {
              $output .= $this->notification(get_string('environmentok', 'admin'), 'notifysuccess');
  
              if (empty($CFG->skiplangupgrade) and current_language() !== 'en') {
                  $output .= $this->box(get_string('langpackwillbeupdated', 'admin'), 'generalbox', 'notice');
              }
  
              $output .= $this->continue_button(new moodle_url($this->page->url, array(
                  'confirmupgrade' => 1, 'confirmrelease' => 1, 'cache' => 0)));
          }
  
          $output .= $this->footer();
  
          return $output;
      }
code: public function upgrade_environment_page($release, $envstatus, $environment_results) {
          global $CFG;
          $output = '';
  
          $output .= $this->header();
          $output .= $this->heading("Moodle $release");
          $output .= $this->release_notes_link();
          $output .= $this->environment_check_table($envstatus, $environment_results);
  
          if (!$envstatus) {
              $output .= $this->upgrade_reload(new moodle_url($this->page->url, array('confirmupgrade' => 1, 'cache' => 0)));
  
          } else {
              $output .= $this->notification(get_string('environmentok', 'admin'), 'notifysuccess');
  
              if (empty($CFG->skiplangupgrade) and current_language() !== 'en') {
                  $output .= $this->box(get_string('langpackwillbeupdated', 'admin'), 'generalbox', 'notice');
              }
  
              $output .= $this->continue_button(new moodle_url($this->page->url, array(
                  'confirmupgrade' => 1, 'confirmrelease' => 1, 'cache' => 0)));
          }
  
          $output .= $this->footer();
  
          return $output;
      }
code_tokens: public function upgrade_environment_page ( $ release , $ envstatus , $ environment_results ) { global $ CFG ; $ output = '' ; $ output .= $ this -> header ( ) ; $ output .= $ this -> heading ( "Moodle $release" ) ; $ output .= $ this -> release_notes_link ( ) ; $ output .= $ this -> environment_check_table ( $ envstatus , $ environment_results ) ; if ( ! $ envstatus ) { $ output .= $ this -> upgrade_reload ( new moodle_url ( $ this -> page -> url , array ( 'confirmupgrade' => 1 , 'cache' => 0 ) ) ) ; } else { $ output .= $ this -> notification ( get_string ( 'environmentok' , 'admin' ) , 'notifysuccess' ) ; if ( empty ( $ CFG -> skiplangupgrade ) and current_language ( ) !== 'en' ) { $ output .= $ this -> box ( get_string ( 'langpackwillbeupdated' , 'admin' ) , 'generalbox' , 'notice' ) ; } $ output .= $ this -> continue_button ( new moodle_url ( $ this -> page -> url , array ( 'confirmupgrade' => 1 , 'confirmrelease' => 1 , 'cache' => 0 ) ) ) ; } $ output .= $ this -> footer ( ) ; return $ output ; }
docstring: Display the environment page during the upgrade process.
  @param string $release
  @param boolean $envstatus final result of env check (true/false)
  @param array $environment_results array of results gathered
  @return string HTML to output.
docstring_tokens: Display the environment page during the upgrade process .