]> git.mxchange.org Git - friendica.git/blobdiff - boot.php
allow users to set categories on their posts
[friendica.git] / boot.php
index 2f2e28cebde3b5a1eb574c4a1ea5eb4049e04a99..c2690f6ef0e0024eda0f5bd834f4f5e87ae534d9 100755 (executable)
--- a/boot.php
+++ b/boot.php
@@ -293,6 +293,8 @@ class App {
        
        public $nav_sel;
 
+       public $category;
+
        private $scheme;
        private $hostname;
        private $baseurl;
@@ -377,6 +379,9 @@ class App {
                $this->argc = count($this->argv);
                if((array_key_exists('0',$this->argv)) && strlen($this->argv[0])) {
                        $this->module = str_replace(".", "_", $this->argv[0]);
+                       if(array_key_exists('2',$this->argv)) {
+                           $this->category = $this->argv[2];
+                       }
                }
                else {
                        $this->argc = 1;