]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/action.php
Moved oEmbed stuff out to a plugin (Oembed).
[quix0rs-gnu-social.git] / lib / action.php
index 74ced563fbbbc46e3951dc9dfc5431db7ac38f89..4d917dc69e1fe7d2581b1a604e9a1a10799cb1c8 100644 (file)
@@ -166,6 +166,11 @@ class Action extends HTMLOutputter // lawsuit
         return $this->scoped;
     }
 
+    public function getActionName()
+    {
+        return $this->action;
+    }
+
     /**
      * Show page, a template method.
      *
@@ -1333,9 +1338,9 @@ class Action extends HTMLOutputter // lawsuit
      */
     function int($key, $defValue=null, $maxValue=null, $minValue=null)
     {
-        $arg = strtolower($this->trimmed($key));
+        $arg = intval($this->arg($key));
 
-        if (is_null($arg) || !is_integer($arg)) {
+        if (!is_numeric($this->arg($key)) || $arg != $this->arg($key)) {
             return $defValue;
         }