From b8580b7c205cbc1f674a0fea04235b1eb9947a7a Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 8 Oct 2005 04:44:26 +0000 Subject: [PATCH] Don't use $this->registry in the kernel, just use $this --- kernel.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/kernel.php b/kernel.php index 2d420cc..34e7aa9 100644 --- a/kernel.php +++ b/kernel.php @@ -496,22 +496,22 @@ class Shared_Object_Framework { if ($this->magicquotes AND !$force) { - if (isset($this->registry->db) AND $binary) + if (isset($this->db) AND $binary) { - if (is_resource($this->registry->db->link_id)) + if (is_resource($this->db->link_id)) { - return $this->registry->db->escape_string(stripslashes($str)); + return $this->db->escape_string(stripslashes($str)); } } return $str; } else { - if (isset($this->registry->db) AND $binary) + if (isset($this->db) AND $binary) { - if (is_resource($this->registry->db->link_id)) + if (is_resource($this->db->link_id)) { - return $this->registry->db->escape_string($str); + return $this->db->escape_string($str); } } return addslashes($str); -- 2.43.5