mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-08-02 11:36:08 -04:00
pass by reference, closes #858
This commit is contained in:
parent
5d4561bd0a
commit
8ad6300c1c
11 changed files with 94 additions and 46 deletions
|
@ -85,7 +85,7 @@ class Filesystem extends AbstractData
|
|||
* @param array $paste
|
||||
* @return bool
|
||||
*/
|
||||
public function create($pasteid, array $paste)
|
||||
public function create($pasteid, array &$paste)
|
||||
{
|
||||
$storagedir = $this->_dataid2path($pasteid);
|
||||
$file = $storagedir . $pasteid . '.php';
|
||||
|
@ -188,7 +188,7 @@ class Filesystem extends AbstractData
|
|||
* @param array $comment
|
||||
* @return bool
|
||||
*/
|
||||
public function createComment($pasteid, $parentid, $commentid, array $comment)
|
||||
public function createComment($pasteid, $parentid, $commentid, array &$comment)
|
||||
{
|
||||
$storagedir = $this->_dataid2discussionpath($pasteid);
|
||||
$file = $storagedir . $pasteid . '.' . $commentid . '.' . $parentid . '.php';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue