Merge pull request #11 from purplefish32/master

Fixes multicase URLs
pico-3.0-alpha
Gilbert Pellegrom 12 years ago
commit 070cb92661
  1. 2
      lib/pico.php

@ -13,7 +13,7 @@ class Pico {
if($request_url != $script_url) $url = trim(preg_replace('/'. str_replace('/', '\/', str_replace('index.php', '', $script_url)) .'/', '', $request_url, 1), '/'); if($request_url != $script_url) $url = trim(preg_replace('/'. str_replace('/', '\/', str_replace('index.php', '', $script_url)) .'/', '', $request_url, 1), '/');
// Get the file path // Get the file path
if($url) $file = strtolower(CONTENT_DIR . $url); if($url) $file = CONTENT_DIR . $url;
else $file = CONTENT_DIR .'index'; else $file = CONTENT_DIR .'index';
// Load the file // Load the file

Loading…
Cancel
Save