getter, setter are all final; several code clean-ups
[mailer.git] / inc / config / class_FrameworkConfiguration.php
index 4a82113f16a3caccd34ff380481a183e02d53498..a1ca42a3aead470ecf98d016c3d3044abc316759 100644 (file)
@@ -5,12 +5,12 @@
  * NOTE: We cannot put this in inc/classes/ because it would be loaded (again)
  * in the class loader. See inc/loader/class_ClassLoader.php for instance
  *
- * @see        ClassLoader
+ * @see                        ClassLoader
  * @author             Roland Haeder <webmaster@mxchange.org>
  * @version            0.3.0
  * @copyright  Copyright(c) 2007, 2008 Roland Haeder, this is free software
  * @license            GNU GPL 3.0 or any newer version
- * @link               http://www.mxchange.org
+ * @link               http://www.mxchange.org
  * 
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -208,8 +208,11 @@ class FrameworkConfiguration {
                // Cast to string
                $path = (string) $path;
 
+               // Replace backslashes with slashes
+               $path = str_replace("\\", "/", $path);
+
                // Is it defined or not?
-               if (!is_dir($path)) {
+               if ((!is_dir($path)) || (!is_readable($path))) {
                        // Is not a valid path
                        ApplicationEntryPoint::app_die(sprintf("[%s:] Invalid path (not found) specified. Please make sure it is created.",
                                __CLASS__