From 5a05468fe2d78641d3adb0ba5b83bf526f4f06de Mon Sep 17 00:00:00 2001
From: M <m@lfurio.us>
Date: Sat, 5 Dec 2015 22:53:34 -0500
Subject: + Added framework function for getting current app path * Changed
 sysconf view to use new function ($mod->ar()/sysconf -> $mod->ap)

---
 app/class/framework.class.php | 8 ++++++++
 1 file changed, 8 insertions(+)

(limited to 'app/class')

diff --git a/app/class/framework.class.php b/app/class/framework.class.php
index 11902d0..151ca8e 100644
--- a/app/class/framework.class.php
+++ b/app/class/framework.class.php
@@ -26,6 +26,14 @@ abstract class Framework
         return substr($_SERVER['PHP_SELF'], 0, -10); // 10 = length of "/index.php"
     }
 
+    /*
+     * Get the absolute path to the current page
+     */
+    function ap()
+    {
+        return $this->ar() . $_REQUEST['path'];
+    }
+
     /*
      * Redirect to the given URL and die
      */
-- 
cgit v1.2.3