Skip to content

Commit

Permalink
Bug fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pascal Polleunus committed May 18, 2020
1 parent d828382 commit 22fba86
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions minish.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* @version 0.1.1
* @link https://github.com/ppo/php-minish
* @license https://github.com/ppo/LICENSE MIT
* @license https://github.com/ppo/php-minish/LICENSE MIT
* @author Pascal Polleunus
*/

Expand Down Expand Up @@ -178,7 +178,7 @@ public static function autoloader($class) {
}

// Handle other classes. Namespace supported.
$dirs = array_merge([static::PRIVATE_DIR], $this->getSetting("autoloadDirs", []));
$dirs = array_merge([PRIVATE_DIR], $this->getSetting("autoloadDirs", []));
foreach ($dirs as $dir) {
$path = $dir . str_replace("\\", "/", $class) . ".php";
if (file_exists($path)) { require_once $path; break; }
Expand Down Expand Up @@ -619,7 +619,7 @@ public function generateSitemap() {
$lastMod = date("Y-m-d", $stat["mtime"]);
fwrite($file,
"<url>" .
"<loc>{$baseUrl}{$routeConfig[path]}</loc>" .
"<loc>{$baseUrl}{$routeConfig['path']}</loc>" .
"<lastmod>{$lastMod}</lastmod>" .
"<changefreq>monthly</changefreq>" .
"<priority>1</priority>" .
Expand Down

0 comments on commit 22fba86

Please sign in to comment.