original_string: public static function show_after_install($markasviewed = null) {
          global $CFG;
          if (self::is_registered()) {
              $showregistration = false;
              $markasviewed = true;
          } else {
              $showregistration = !empty($CFG->registrationpending);
              if ($showregistration && !site_is_public()) {
                  // If it's not a public site, don't redirect to registration, it won't work anyway.
                  $showregistration = false;
                  $markasviewed = true;
              }
          }
          if ($markasviewed !== null) {
              set_config('registrationpending', !$markasviewed);
          }
          return $showregistration;
      }
code: public static function show_after_install($markasviewed = null) {
          global $CFG;
          if (self::is_registered()) {
              $showregistration = false;
              $markasviewed = true;
          } else {
              $showregistration = !empty($CFG->registrationpending);
              if ($showregistration && !site_is_public()) {
                  // If it's not a public site, don't redirect to registration, it won't work anyway.
                  $showregistration = false;
                  $markasviewed = true;
              }
          }
          if ($markasviewed !== null) {
              set_config('registrationpending', !$markasviewed);
          }
          return $showregistration;
      }
code_tokens: public static function show_after_install ( $ markasviewed = null ) { global $ CFG ; if ( self :: is_registered ( ) ) { $ showregistration = false ; $ markasviewed = true ; } else { $ showregistration = ! empty ( $ CFG -> registrationpending ) ; if ( $ showregistration && ! site_is_public ( ) ) { // If it's not a public site, don't redirect to registration, it won't work anyway. $ showregistration = false ; $ markasviewed = true ; } } if ( $ markasviewed !== null ) { set_config ( 'registrationpending' , ! $ markasviewed ) ; } return $ showregistration ; }
docstring: Does admin need to be redirected to the registration page after install?
  
  @param bool|null $markasviewed if set to true will mark the registration form as viewed and admin will not be redirected
  to the registration form again (regardless of whether the site was registered or not).
  @return bool
docstring_tokens: Does admin need to be redirected to the registration page after install?