summaryrefslogtreecommitdiff
path: root/kohana/libraries/View.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-03-17 18:56:01 +0000
committerBharat Mediratta <bharat@menalto.com>2009-03-17 18:56:01 +0000
commit208fc9db683c51e3bcf1f24d1e5e0200e0f32d96 (patch)
tree68ef623d8c6e13cc15fc2fe6dbe13a32585b9fa6 /kohana/libraries/View.php
parent3f87c16223d7aca44f432efe99b35ab7afb0dbe4 (diff)
Update Kohana to r4081.
This resolves ticket http://dev.kohanaphp.com/ticket/1156 1156: "Table prefix gets append to column name" All tests pass.
Diffstat (limited to 'kohana/libraries/View.php')
-rw-r--r--kohana/libraries/View.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/kohana/libraries/View.php b/kohana/libraries/View.php
index 5dba706c..87b15fc3 100644
--- a/kohana/libraries/View.php
+++ b/kohana/libraries/View.php
@@ -152,13 +152,13 @@ class View_Core {
foreach ($key as $property)
{
// Set the result to an associative array
- $result[$property] = (array_key_exists($property, $this->kohana_local_data) OR array_key_exists($property, self::$kohana_global_data)) ? TRUE : FALSE;
+ $result[$property] = (array_key_exists($property, $this->kohana_local_data) OR array_key_exists($property, View::$kohana_global_data)) ? TRUE : FALSE;
}
}
else
{
// Otherwise just check one property
- $result = (array_key_exists($key, $this->kohana_local_data) OR array_key_exists($key, self::$kohana_global_data)) ? TRUE : FALSE;
+ $result = (array_key_exists($key, $this->kohana_local_data) OR array_key_exists($key, View::$kohana_global_data)) ? TRUE : FALSE;
}
// Return the result
@@ -192,12 +192,12 @@ class View_Core {
{
foreach ($name as $key => $value)
{
- self::$kohana_global_data[$key] = $value;
+ View::$kohana_global_data[$key] = $value;
}
}
else
{
- self::$kohana_global_data[$name] = $value;
+ View::$kohana_global_data[$name] = $value;
}
}
@@ -225,8 +225,8 @@ class View_Core {
if (isset($this->kohana_local_data[$key]))
return $this->kohana_local_data[$key];
- if (isset(self::$kohana_global_data[$key]))
- return self::$kohana_global_data[$key];
+ if (isset(View::$kohana_global_data[$key]))
+ return View::$kohana_global_data[$key];
if (isset($this->$key))
return $this->$key;
@@ -266,7 +266,7 @@ class View_Core {
if (is_string($this->kohana_filetype))
{
// Merge global and local data, local overrides global with the same name
- $data = array_merge(self::$kohana_global_data, $this->kohana_local_data);
+ $data = array_merge(View::$kohana_global_data, $this->kohana_local_data);
// Load the view in the controller for access to $this
$output = Kohana::$instance->_kohana_load_view($this->kohana_filename, $data);