From b79965941dfe8a59833cabca838f47083608be0b Mon Sep 17 00:00:00 2001 From: Jonathan Ernst Date: Wed, 9 Feb 2005 23:52:49 +0000 Subject: [PATCH] Remove duplicated includes to avoid fatal errors --- addcomment.php | 1 - admin/addAppNote.php | 1 - admin/deleteAny.php | 1 + admin/editAppNote.php | 1 - deletecomment.php | 1 - vendorview.php | 1 - 6 files changed, 1 insertion(+), 5 deletions(-) diff --git a/addcomment.php b/addcomment.php index 7c78f17..4e71b0a 100644 --- a/addcomment.php +++ b/addcomment.php @@ -10,7 +10,6 @@ include("path.php"); require(BASE."include/incl.php"); require(BASE."include/application.php"); require(BASE."include/mail.php"); -require(BASE."include/comment.php"); // you must be logged in to submit comments if(!$_SESSION['current']->isLoggedIn()) diff --git a/admin/addAppNote.php b/admin/addAppNote.php index 2d3dbf0..bfd5190 100644 --- a/admin/addAppNote.php +++ b/admin/addAppNote.php @@ -7,7 +7,6 @@ include("path.php"); require(BASE."include/incl.php"); require(BASE."include/application.php"); require(BASE."include/mail.php"); -require(BASE."include/note.php"); //FIXME: get rid of appId references everywhere, as version is enough. $sQuery = "SELECT appId FROM appVersion WHERE versionId = '".$_REQUEST['versionId']."'"; diff --git a/admin/deleteAny.php b/admin/deleteAny.php index 2edde26..90b5d71 100644 --- a/admin/deleteAny.php +++ b/admin/deleteAny.php @@ -10,6 +10,7 @@ include("path.php"); include(BASE."include/incl.php"); include(BASE."include/category.php"); include(BASE."include/application.php"); +include(BASE."include/mail.php"); if(!$_SESSION['current']->hasPriv("admin")) { diff --git a/admin/editAppNote.php b/admin/editAppNote.php index 5c8a33c..51d3f23 100644 --- a/admin/editAppNote.php +++ b/admin/editAppNote.php @@ -7,7 +7,6 @@ include("path.php"); require(BASE."include/incl.php"); require(BASE."include/application.php"); require(BASE."include/mail.php"); -require(BASE."include/note.php"); if(!is_numeric($_REQUEST['noteId'])) { diff --git a/deletecomment.php b/deletecomment.php index 5d04f50..ff6d66c 100644 --- a/deletecomment.php +++ b/deletecomment.php @@ -10,7 +10,6 @@ include("path.php"); require(BASE."include/incl.php"); require(BASE."include/application.php"); require(BASE."include/mail.php"); -require(BASE."include/comment.php"); $_REQUEST['appId'] = strip_tags($_REQUEST['appId']); diff --git a/vendorview.php b/vendorview.php index 2caf302..20e3b7f 100644 --- a/vendorview.php +++ b/vendorview.php @@ -9,7 +9,6 @@ include("path.php"); require(BASE."include/incl.php"); require(BASE."include/application.php"); -require(BASE."include/comment.php"); $vendorId = $_REQUEST['vendorId'];