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

Commit

Permalink
Merge branch 'release/1.4.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
florianpircher committed Jul 12, 2017
2 parents 2ad64a3 + f8d55b1 commit 8a5197c
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ c::set('comments.pages.comments.title', function ($page) {
| `honeypot.human-value` | string | `""` | Value of an empty honeypot field. | |
| `email.enabled` | bool | `false` | Whether the plugin should send email notifications. | |
| `email.to` | array(string) | `array()` | List of email addresses that receive email notifications. | |
| `email.subject` | string | `New Comment on {{ page.title }}` | Subject of an email notification. | |
| `email.subject` | string | `"New Comment on {{ page.title }}"` | Subject of an email notification. | |
| `email.undefined-value` | string | `"(not specified)"` | Text that is inserted for values that the comment’s author did not specify. | |
| `session.key` | string | `"comments"` | Key used to store the comments session. | |
| `setup.content-page.title` | Closure | `function ($page) { return $page->title(); }` | Takes a `Page` and returns its title as `string`. Is used for generating email notifications. | |
Expand Down Expand Up @@ -306,7 +306,7 @@ If you don’t want every comment to have an ID you can check for `$comment->isP

## API Documentation

### `$comments : Comments implements Iterator`
### `$comments : Comments implements Iterator, Countable`

The main object you will be using when working with Kirby Comments.

Expand Down
8 changes: 4 additions & 4 deletions comments.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

include_once('plugin/comments.php');
include_once('plugin/comment.php');
include_once('plugin/comments-email.php');
include_once('plugin/comments-status.php');
include_once('plugin/Comments.php');
include_once('plugin/Comment.php');
include_once('plugin/CommentsEmail.php');
include_once('plugin/CommentsStatus.php');

/*
* Custom page methods
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "File-based comments stored as subpages for the Kirby CMS.",
"author": "Florian Pircher <[email protected]>",
"license": "MIT",
"version": "1.4.0",
"version": "1.4.1",
"type": "kirby-plugin",
"repository": {
"type": "git",
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions plugin/comments.php → plugin/Comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* Comments
*/
class Comments implements Iterator
class Comments implements Iterator, Countable
{
/**
* All default values linked to their options-keys.
Expand Down Expand Up @@ -191,7 +191,7 @@ public function process()

// Check Session.ID == POST.Session.ID

if ($is_send) {
if ($is_submit) {
$session_id = $_SESSION[Comments::option('session.key')];
$post_session_id = $_POST[Comments::option('form.session_id')];

Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 8a5197c

Please sign in to comment.