original_string: public static function backup_is_samesite($info) {
          global $CFG;
          $hashedsiteid = md5(get_site_identifier());
          if (isset($info->original_site_identifier_hash) && !empty($info->original_site_identifier_hash)) {
              return $info->original_site_identifier_hash == $hashedsiteid;
          } else {
              return $info->original_wwwroot == $CFG->wwwroot;
          }
      }
code: public static function backup_is_samesite($info) {
          global $CFG;
          $hashedsiteid = md5(get_site_identifier());
          if (isset($info->original_site_identifier_hash) && !empty($info->original_site_identifier_hash)) {
              return $info->original_site_identifier_hash == $hashedsiteid;
          } else {
              return $info->original_wwwroot == $CFG->wwwroot;
          }
      }
code_tokens: public static function backup_is_samesite ( $ info ) { global $ CFG ; $ hashedsiteid = md5 ( get_site_identifier ( ) ) ; if ( isset ( $ info -> original_site_identifier_hash ) && ! empty ( $ info -> original_site_identifier_hash ) ) { return $ info -> original_site_identifier_hash == $ hashedsiteid ; } else { return $ info -> original_wwwroot == $ CFG -> wwwroot ; } }
docstring: Given the information fetched from moodle_backup.xml file
  decide if we are restoring in the same site the backup was
  generated or no. Behavior of various parts of restore are
  dependent of this.
  
  Backups created natively in 2.0 and later declare the hashed
  site identifier. Backups created by conversion from a 1.9
  backup do not declare such identifier, so there is a fallback
  to wwwroot comparison. See MDL-16614.
docstring_tokens: Given the information fetched from moodle_backup . xml file decide if we are restoring in the same site the backup was generated or no . Behavior of various parts of restore are dependent of this .