Permalink
Browse files

Fixing library include option.

  • Loading branch information...
1 parent 97eb69d commit fc147839d61456216f9ba17303fd413461737281 @michelf committed Nov 29, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 mdtest.php
View
@@ -116,7 +116,9 @@ function millisec() {
require DIRECTORY_SEPARATOR .
preg_replace('{\\\\|_(?!.*\\\\)}', DIRECTORY_SEPARATOR, ltrim($class, '\\')).'.php';
});
- } else if (!is_file($lib)) {
+ } else if (is_file($lib)) {
+ include_once $lib;
+ } else {
exit("$argv[0]: library '$lib' does not exist.\n");
}

0 comments on commit fc14783

Please sign in to comment.