summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
Diffstat (limited to 'system')
-rw-r--r--system/core/Common.php2
-rw-r--r--system/core/Model.php4
-rw-r--r--system/helpers/html_helper.php2
3 files changed, 6 insertions, 2 deletions
diff --git a/system/core/Common.php b/system/core/Common.php
index e340931b7..7f2708151 100644
--- a/system/core/Common.php
+++ b/system/core/Common.php
@@ -124,7 +124,7 @@ if ( ! function_exists('load_class'))
*
* @param string the class name being requested
* @param string the directory where the class should be found
- * @param string the class name prefix
+ * @param string an optional argument to pass to the class constructor
* @return object
*/
function &load_class($class, $directory = 'libraries', $param = NULL)
diff --git a/system/core/Model.php b/system/core/Model.php
index 9485ec2c9..9736faa7e 100644
--- a/system/core/Model.php
+++ b/system/core/Model.php
@@ -59,6 +59,10 @@ class CI_Model {
*/
public function __get($key)
{
+ // Debugging note:
+ // If you're here because you're getting an error message
+ // saying 'Undefined Property: system/core/Model.php', it's
+ // most likely a typo in your model code.
return get_instance()->$key;
}
diff --git a/system/helpers/html_helper.php b/system/helpers/html_helper.php
index d8c3e6d89..e8cef37b7 100644
--- a/system/helpers/html_helper.php
+++ b/system/helpers/html_helper.php
@@ -292,7 +292,7 @@ if ( ! function_exists('link_tag'))
}
else
{
- if ( ! preg_match('#^([a-z]+:)?//#i', $href))
+ if (preg_match('#^([a-z]+:)?//#i', $href))
{
$link .= 'href="'.$href.'" ';
}