aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Minz/Request.php6
-rw-r--r--lib/lib_rss.php6
2 files changed, 11 insertions, 1 deletions
diff --git a/lib/Minz/Request.php b/lib/Minz/Request.php
index 01feece52..9235f873a 100644
--- a/lib/Minz/Request.php
+++ b/lib/Minz/Request.php
@@ -52,6 +52,12 @@ class Minz_Request {
}
return null;
}
+ public static function paramBoolean($key) {
+ if (null === $value = self::paramTernary($key)) {
+ return false;
+ }
+ return $value;
+ }
public static function defaultControllerName() {
return self::$default_controller_name;
}
diff --git a/lib/lib_rss.php b/lib/lib_rss.php
index 854126b54..2a230e6f8 100644
--- a/lib/lib_rss.php
+++ b/lib/lib_rss.php
@@ -300,7 +300,11 @@ function invalidateHttpCache($username = '') {
Minz_Session::_param('touch', uTimeString());
$username = Minz_Session::param('currentUser', '_');
}
- return touch(join_path(DATA_PATH, 'users', $username, 'log.txt'));
+ $ok = @touch(DATA_PATH . '/users/' . $username . '/log.txt');
+ if (!$ok) {
+ //TODO: Display notification error on front-end
+ }
+ return $ok;
}
function listUsers() {