diff options
| author | 2022-07-27 18:52:30 +0200 | |
|---|---|---|
| committer | 2022-07-27 18:52:30 +0200 | |
| commit | a534fc79c48f3ef83cc54510d0a5bde2b5089ed6 (patch) | |
| tree | ace5086552d253ca5e2e673120fcd5449f04f8a0 /lib | |
| parent | c5960998903a281923055f9c1768de708b037ca6 (diff) | |
Fix: logs page=0 error (#4460)
* add docs of function param()
* page < 0 is impossible now
* show prev/next only, when there is a prev/next page
* set always page params
* Revert "page < 0 is impossible now"
This reverts commit fdb920ee50efe2c5cf64ca2dec936ec28ab2ee6c.
* Update logs_pagination.phtml
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/Minz/Request.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Minz/Request.php b/lib/Minz/Request.php index 9179eb368..2ad02014f 100644 --- a/lib/Minz/Request.php +++ b/lib/Minz/Request.php @@ -27,6 +27,13 @@ class Minz_Request { public static function params() { return self::$params; } + /** + * Read the URL parameter + * @param string $key Key name + * @param mixed $default default value, if no parameter is given + * @param bool $specialchars special characters + * @return mixed value of the parameter + */ public static function param($key, $default = false, $specialchars = false) { if (isset(self::$params[$key])) { $p = self::$params[$key]; |
