BSRegister::GetType() will be responsible for adding the BS prefix to class names...
authorRobert Sesek <rsesek@bluestatic.org>
Wed, 6 Dec 2006 04:50:43 +0000 (04:50 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Wed, 6 Dec 2006 04:50:43 +0000 (04:50 +0000)
Mail.php
Pagination.php
Register.php

index 0cc34533d034e888b4a8ab8f566f45574ecfe027..dcbba740ebb97722f57e7fa98a3035606ec234ec 100644 (file)
--- 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');
index 7a329577204ba4d5499b05439abd6a71fb04a38a..29ce8f81c622e8343be21562ef08be55368eb32f 100644 (file)
@@ -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');
index 6e3ed0cfb5e0c109e5d17a15b754e2325fc70e61..8762761f1473979e1729f2aef0d191764baa3337 100644 (file)
@@ -318,6 +318,7 @@ class BSRegister
        */
        public function GetType($class)
        {
+               $class = 'BS' . $class;
                foreach (self::Instance()->registry AS $key => $object)
                {
                        if ($object instanceof $class)