From a0b1f690ef544619d788dfba4ef2b768fe02059f Mon Sep 17 00:00:00 2001 From: saxmatt Date: Tue, 17 Feb 2004 03:00:20 +0000 Subject: [PATCH] New *_action functions, removed alert_error. git-svn-id: http://svn.automattic.com/wordpress/trunk@883 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/import-greymatter.php | 4 ++-- wp-includes/functions.php | 38 ++++++++++++++-------------------- 2 files changed, 18 insertions(+), 24 deletions(-) diff --git a/wp-admin/import-greymatter.php b/wp-admin/import-greymatter.php index 900bed588b..6eed8347cd 100644 --- a/wp-admin/import-greymatter.php +++ b/wp-admin/import-greymatter.php @@ -35,10 +35,10 @@ case "step1": } if (!chdir($archivespath)) - alert_error("Wrong path, $archivespath\ndoesn't exist\non the server"); + die("Wrong path, $archivespath\ndoesn't exist\non the server"); if (!chdir($gmpath)) - alert_error("Wrong path, $gmpath\ndoesn't exist\non the server"); + die("Wrong path, $gmpath\ndoesn't exist\non the server"); ?> diff --git a/wp-includes/functions.php b/wp-includes/functions.php index b4069fc859..d5cd8b8fcc 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -460,28 +460,6 @@ function gzip_compression() { } } -function alert_error($msg) { // displays a warning box with an error message (original by KYank) - global $$HTTP_SERVER_VARS; - ?> - - - - - - -
- ">go back - - -