1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-22 08:13:14 +02:00

[ticket/13904] No longer use fileerror class for extending filespec class

PHPBB3-13904
This commit is contained in:
Marc Alexander
2015-06-02 11:48:55 +02:00
parent eb11973ea8
commit a53825ad76
3 changed files with 40 additions and 28 deletions

View File

@@ -118,6 +118,20 @@ class filespec
return !isset($this->filename);
}
/**
* Set error in error array
*
* @param mixed $error Content for error array
*
* @return \phpbb\files\filespec This instance of the filespec class
*/
public function set_error($error)
{
$this->error[] = $error;
return $this;
}
/**
* Cleans destination filename
*