[git] web/doc-editor.git branch master updated. d767630

From: Date: Sat, 25 Feb 2012 10:44:05 +0000
Subject: [git] web/doc-editor.git branch master updated. d767630
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-9671@lists.php.net to get a copy of this message
The branch, master on web/doc-editor.git has been updated via d7676304b3bdfba7c0d86e076ad071e53cfc96ba (commit) from d9dd79eb876a41786d38a439cbf81ec7232440cb (commit) http://git.php.net/?p=web/doc-editor.git;a=log;h=d7676304b3bdfba7c0d86e076ad071e53cfc96ba;hp=d9dd79eb876a41786d38a439cbf81ec7232440cb Summary of changes: php/File.php | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) -- Log ---------------------------------------- commit d7676304b3bdfba7c0d86e076ad071e53cfc96ba Author: Alexander Moskaliov <irker@php.net> Date: Sat Feb 25 14:34:16 2012 +0400 add user id for anonymous diff --git a/php/File.php b/php/File.php index 2288fad..7ec19a6 100644 --- a/php/File.php +++ b/php/File.php @@ -301,6 +301,7 @@ class File $s = 'SELECT id as fidDB, users.vcs_login as user, + users.userID, users.authService, module as fromModule, type as ftype, @@ -327,6 +328,7 @@ class File return false; } else { $a = $r->fetch_assoc(); + if ($a['user'] == 'anonymous') $a['user'] = $a['user'] . ' #' . $a['userID']; $a['haveKarma'] = (($a['authService'] == 'VCS') && ($am->checkKarma($a['vcs_login'], $this->lang) === true)); return json_encode($a); } Thank you for your contribution.

« previous php.doc.cvs (#9671) next »