From: Fabio Comuni <fabrix.xm@gmail.com>
Date: Wed, 16 Feb 2011 07:55:38 +0000 (+0100)
Subject: allow /name.ext to load mod/name_ext.php
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3208a649a25cfb0b8fe4aaf50e254ef747aad718;p=friendica.git

allow /name.ext to load mod/name_ext.php
---

diff --git a/boot.php b/boot.php
index 2713f3dcea..ab738e2130 100644
--- a/boot.php
+++ b/boot.php
@@ -277,7 +277,7 @@ class App {
 		$this->argv = explode('/',$this->cmd);
 		$this->argc = count($this->argv);
 		if((array_key_exists('0',$this->argv)) && strlen($this->argv[0])) {
-			$this->module = $this->argv[0];
+			$this->module = str_replace(".", "_", $this->argv[0]);
 		}
 		else {
 			$this->module = 'home';