MINOR Added message to the top of DevelopmentAdmin::build() in red (if run from the web) to warn the user of deprecation, and that they should use dev/build instead

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@77634 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2009-05-22 04:48:05 +00:00
parent 825362bf00
commit cd2a6e0608

View File

@ -97,6 +97,9 @@ class DatabaseAdmin extends Controller {
echo "<p>Done!</p>";
Director::redirect($_GET['returnURL']);
} else {
if(!Director::is_cli() && Director::urlParam('Controller') == __CLASS__) {
echo '<p style="color: red;"><i>db/build</i> has been deprecated. Please use <b>dev/build</b> instead.</p>';
}
$this->doBuild(isset($_REQUEST['quiet']) || isset($_REQUEST['from_installer']), !isset($_REQUEST['dont_populate']));
}
}