mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-08-08 14:32:21 -04:00
replaced the term "paste" with the more generic "document"
kudos @Ribas160
This commit is contained in:
parent
634c15a2e8
commit
bde805d2f1
5 changed files with 5 additions and 37 deletions
|
@ -71,17 +71,6 @@ class Comment extends AbstractModel
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete the comment.
|
||||
*
|
||||
* @access public
|
||||
* @throws Exception
|
||||
*/
|
||||
public function delete()
|
||||
{
|
||||
throw new Exception('To delete a comment, delete its parent paste', 64);
|
||||
}
|
||||
|
||||
/**
|
||||
* Test if comment exists in store.
|
||||
*
|
||||
|
@ -131,7 +120,7 @@ class Comment extends AbstractModel
|
|||
public function setParentId($id)
|
||||
{
|
||||
if (!self::isValidId($id)) {
|
||||
throw new Exception('Invalid paste ID.', 65);
|
||||
throw new Exception('Invalid document ID.', 65);
|
||||
}
|
||||
$this->_data['parentid'] = $id;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue