summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-06-12 12:25:31 +0200
committerAndrey Andreev <narf@bofh.bg>2012-06-12 12:25:31 +0200
commitcce918033a99186cd76019d022571a8d9321d899 (patch)
treecce0ad35a918cc7e8cd6c9d54974f16810751455
parent806ca600d3669343ee7ae90a9b5d65be9dfdbefe (diff)
Fix APPPATH
-rw-r--r--index.php4
-rw-r--r--system/core/Loader.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/index.php b/index.php
index 380d1017b..ad98013ca 100644
--- a/index.php
+++ b/index.php
@@ -211,7 +211,7 @@ if (defined('ENVIRONMENT'))
// The path to the "application" folder
if (is_dir($application_folder))
{
- if (($_temp = realpath($system_path)) !== FALSE)
+ if (($_temp = realpath($application_folder)) !== FALSE)
{
$application_folder = $_temp;
}
@@ -256,7 +256,7 @@ if (defined('ENVIRONMENT'))
$view_folder = rtrim($view_folder, '/').'/';
}
- define ('VIEWPATH', $view_folder);
+ define('VIEWPATH', $view_folder);
/*
* --------------------------------------------------------------------
diff --git a/system/core/Loader.php b/system/core/Loader.php
index 09e948714..94739c74a 100644
--- a/system/core/Loader.php
+++ b/system/core/Loader.php
@@ -668,7 +668,7 @@ class CI_Loader {
* @param bool
* @return void
*/
- public function add_package_path($path, $view_cascade=TRUE)
+ public function add_package_path($path, $view_cascade = TRUE)
{
$path = rtrim($path, '/').'/';