summaryrefslogtreecommitdiff
path: root/lib/action.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/action.php')
-rw-r--r--lib/action.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/action.php b/lib/action.php
index 8d4a0b7ab..9b7988a19 100644
--- a/lib/action.php
+++ b/lib/action.php
@@ -34,6 +34,11 @@ class Action { // lawsuit
}
}
+ function trimmed($key) {
+ $arg = $this->arg($key);
+ return (is_string($arg)) ? trim($arg) : $arg;
+ }
+
function handle($argarray) {
$this->args = array();
foreach ($argarray as $k => $v) {