Revert changes done to restore.php in #30479 to fix build
Merge pull request #1584 from phproberto/build-restore

Revert changes done to restore.php in #30479 to fix build