Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Fix comments feed
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Nov 28, 2013
1 parent 5fd9a35 commit be414f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Expand Up @@ -133,6 +133,7 @@ public function switchActions($actionName, $httpVars, $fileVars)
}
HTMLWriter::charsetHeader("application/json");
$com["hdate"] = AJXP_Utils::relativeDate($com["date"], $mess);
$com["path"] = $uniqNode->getPath();
echo json_encode($com);

break;
Expand Down
2 changes: 1 addition & 1 deletion core/src/plugins/meta.comments/class.CommentsPanel.js
Expand Up @@ -158,7 +158,7 @@ Class.create("CommentsPanel", {
}
// Fake file/folder detection
var basename = getBaseName(hash.get('path'));
if(basename.indexOf('.') != -1){
if(basename && basename.indexOf('.') != -1){
el.addClassName('comment_type_file');
}else{
el.addClassName('comment_type_folder');
Expand Down

0 comments on commit be414f1

Please sign in to comment.