Browse files

Closes #685. Update application and system paths to fix the 'Page not…

… found' after installation. Thanks @ekala
  • Loading branch information...
1 parent ed17a01 commit b1d98f4ff50d5d2dfb8c298e0c050e9ceb429133 @srutto srutto committed Jul 11, 2012
Showing with 6 additions and 6 deletions.
  1. +6 −6 index.php
View
12 index.php
@@ -115,12 +115,12 @@
is_link(KOHANA) and chdir(dirname(realpath(__FILE__)));
// Define application and system paths
-define('APPPATH', realpath($kohana_application).DIRECTORY_SEPARATOR);
-define('THEMEPATH', realpath($kohana_themes).DIRECTORY_SEPARATOR);
-define('PLUGINPATH', realpath($kohana_plugins).DIRECTORY_SEPARATOR);
-define('MODPATH', realpath($kohana_modules).DIRECTORY_SEPARATOR);
-define('SYSPATH', realpath($kohana_system).DIRECTORY_SEPARATOR);
-define('MEDIAPATH', realpath($kohana_media).DIRECTORY_SEPARATOR);
+define('APPPATH', str_replace('\\', '/', realpath($kohana_application)).'/');
+define('THEMEPATH', str_replace('\\', '/', realpath($kohana_themes)).'/');
+define('PLUGINPATH', str_replace('\\', '/', realpath($kohana_plugins)).'/');
+define('MODPATH', str_replace('\\', '/', realpath($kohana_modules)).'/');
+define('SYSPATH', str_replace('\\', '/', realpath($kohana_system)).'/');
+define('MEDIAPATH', str_replace('\\', '/', realpath($kohana_media)).'/');
// Clean up
unset($kohana_application, $kohana_themes, $kohana_plugins, $kohana_modules, $kohana_system, $kohana_media);

1 comment on commit b1d98f4

@denniskorir

Wow this is awesome

Please sign in to comment.