original_string: protected function starting_output() {
          global $CFG;
  
          if (!during_initial_install()) {
              $this->blocks->load_blocks();
              if (empty($this->_block_actions_done)) {
                  $this->_block_actions_done = true;
                  if ($this->blocks->process_url_actions($this)) {
                      redirect($this->url->out(false));
                  }
              }
              $this->blocks->create_all_block_instances();
          }
  
          // If maintenance mode is on, change the page header.
          if (!empty($CFG->maintenance_enabled)) {
              $this->set_button('<a href="' . $CFG->wwwroot . '/' . $CFG->admin .
                      '/settings.php?section=maintenancemode">' . get_string('maintenancemode', 'admin') .
                      '</a> ' . $this->button);
  
              $title = $this->title;
              if ($title) {
                  $title .= ' - ';
              }
              $this->set_title($title . get_string('maintenancemode', 'admin'));
          }
  
          $this->initialise_standard_body_classes();
      }
code: protected function starting_output() {
          global $CFG;
  
          if (!during_initial_install()) {
              $this->blocks->load_blocks();
              if (empty($this->_block_actions_done)) {
                  $this->_block_actions_done = true;
                  if ($this->blocks->process_url_actions($this)) {
                      redirect($this->url->out(false));
                  }
              }
              $this->blocks->create_all_block_instances();
          }
  
          // If maintenance mode is on, change the page header.
          if (!empty($CFG->maintenance_enabled)) {
              $this->set_button('<a href="' . $CFG->wwwroot . '/' . $CFG->admin .
                      '/settings.php?section=maintenancemode">' . get_string('maintenancemode', 'admin') .
                      '</a> ' . $this->button);
  
              $title = $this->title;
              if ($title) {
                  $title .= ' - ';
              }
              $this->set_title($title . get_string('maintenancemode', 'admin'));
          }
  
          $this->initialise_standard_body_classes();
      }
code_tokens: protected function starting_output ( ) { global $ CFG ; if ( ! during_initial_install ( ) ) { $ this -> blocks -> load_blocks ( ) ; if ( empty ( $ this -> _block_actions_done ) ) { $ this -> _block_actions_done = true ; if ( $ this -> blocks -> process_url_actions ( $ this ) ) { redirect ( $ this -> url -> out ( false ) ) ; } } $ this -> blocks -> create_all_block_instances ( ) ; } // If maintenance mode is on, change the page header. if ( ! empty ( $ CFG -> maintenance_enabled ) ) { $ this -> set_button ( '<a href="' . $ CFG -> wwwroot . '/' . $ CFG -> admin . '/settings.php?section=maintenancemode">' . get_string ( 'maintenancemode' , 'admin' ) . '</a> ' . $ this -> button ) ; $ title = $ this -> title ; if ( $ title ) { $ title .= ' - ' ; } $ this -> set_title ( $ title . get_string ( 'maintenancemode' , 'admin' ) ) ; } $ this -> initialise_standard_body_classes ( ) ; }
docstring: This method is called when the page first moves out of the STATE_BEFORE_HEADER
  state. This is our last change to initialise things.
docstring_tokens: This method is called when the page first moves out of the STATE_BEFORE_HEADER state . This is our last change to initialise things .