From 6e577dfc1d0a6fbde397ac9ce9c46a8c885c8146 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Wed, 6 Dec 2006 04:50:43 +0000 Subject: [PATCH] BSRegister::GetType() will be responsible for adding the BS prefix to class names to the argument, not the end developer --- Mail.php | 2 +- Pagination.php | 2 +- Register.php | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Mail.php b/Mail.php index 0cc3453..dcbba74 100644 --- a/Mail.php +++ b/Mail.php @@ -187,7 +187,7 @@ class BSMail } // load the input sanitizer - $input = BSRegister::GetType('BSInput'); + $input = BSRegister::GetType('Input'); if ($input == null) { BSRegister::Debug('ISSO/Input not loaded, so manually doing so'); diff --git a/Pagination.php b/Pagination.php index 7a32957..29ce8f8 100644 --- a/Pagination.php +++ b/Pagination.php @@ -239,7 +239,7 @@ class BSPagination */ public function processIncomingData() { - $input = BSRegister::GetType('BSInput'); + $input = BSRegister::GetType('Input'); if ($input == null) { BSRegister::Debug('ISSO/Input not loaded, so manually doing so'); diff --git a/Register.php b/Register.php index 6e3ed0c..8762761 100644 --- a/Register.php +++ b/Register.php @@ -318,6 +318,7 @@ class BSRegister */ public function GetType($class) { + $class = 'BS' . $class; foreach (self::Instance()->registry AS $key => $object) { if ($object instanceof $class) -- 2.22.5