]> git.mxchange.org Git - friendica.git/commitdiff
allow /name.ext to load mod/name_ext.php
authorFabio Comuni <fabrix.xm@gmail.com>
Wed, 16 Feb 2011 07:55:38 +0000 (08:55 +0100)
committerFabio Comuni <fabrix.xm@gmail.com>
Thu, 21 Apr 2011 07:04:15 +0000 (09:04 +0200)
boot.php

index 2713f3dcea96b261cf7cf2a1ccb0159c622cd711..ab738e21306ec971a03633cecdf4052b33b9da4c 100644 (file)
--- 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';