aboutsummaryrefslogtreecommitdiff
path: root/p
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-12-28 19:46:04 +0100
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-12-28 19:46:04 +0100
commit0cd975bfd06b45865722d85fbdab120439623ddc (patch)
tree790f442337f88cfecb20b0c62bfec2f61af83c94 /p
parent5f327abeeca1953ff9d11f93afb9fbd9ceb825ba (diff)
parent497d295be470454b7bd068a5c5cceda8caa19527 (diff)
Merge branch '729-move_data' into dev
To update, please follow instructions in https://github.com/FreshRSS/FreshRSS/issues/729
Diffstat (limited to 'p')
-rw-r--r--p/api/greader.php2
-rwxr-xr-xp/i/index.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/p/api/greader.php b/p/api/greader.php
index 1a66c30fb..80714d478 100644
--- a/p/api/greader.php
+++ b/p/api/greader.php
@@ -77,7 +77,7 @@ class MyPDO extends Minz_ModelPdo {
}
function logMe($text) {
- file_put_contents(LOG_PATH . '/api.log', $text, FILE_APPEND);
+ file_put_contents(join_path(USERS_PATH, '_', 'log_api.txt'), $text, FILE_APPEND);
}
function debugInfo() {
diff --git a/p/i/index.php b/p/i/index.php
index ec969c159..009d56bc3 100755
--- a/p/i/index.php
+++ b/p/i/index.php
@@ -32,8 +32,8 @@ if (file_exists(DATA_PATH . '/do-install.txt')) {
require(LIB_PATH . '/http-conditional.php');
$currentUser = Minz_Session::param('currentUser', '');
$dateLastModification = $currentUser === '' ? time() : max(
- @filemtime(LOG_PATH . '/' . $currentUser . '.log'),
- @filemtime(DATA_PATH . '/config.php')
+ @filemtime(join_path(USERS_PATH, $currentUser, 'log.txt')),
+ @filemtime(join_path(DATA_PATH . 'config.php'))
);
if (httpConditional($dateLastModification, 0, 0, false, PHP_COMPRESSION, true)) {
exit(); //No need to send anything