From 0c9148cfd3f22beab2d4d2338b9ca040dec7a21b Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Fri, 13 Jan 2006 02:33:33 +0000 Subject: [PATCH] Automatically define ISSO_DB_LAYER and warn about it --- db.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/db.php b/db.php index df1f839..f5ef49d 100644 --- a/db.php +++ b/db.php @@ -157,6 +157,12 @@ class DB_Abstract */ function init_as_package() { + if (!defined('ISSO_DB_LAYER')) + { + define('ISSO_DB_LAYER', get_class($this)); + trigger_error('ISSO_DB_LAYER was defined automatically by DB::init_as_package(). Define the constant yourself to remove this warning', E_USER_WARNING); + } + return 'db'; } -- 2.43.5