diff --git a/maintenance/generate-entity-file.php b/maintenance/generate-entity-file.php index 283650cd..8bf34a31 100644 --- a/maintenance/generate-entity-file.php +++ b/maintenance/generate-entity-file.php @@ -6,6 +6,11 @@ * writes the whole kaboodle to a file. The resulting file should be versioned. */ +if (php_sapi_name() != 'cli') { + echo 'Script cannot be called from web-browser.'; + exit; +} + chdir( dirname(__FILE__) ); // here's where the entity files are located, assuming working directory