aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/files/filespec.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/phpbb/files/filespec.php')
-rw-r--r--phpBB/phpbb/files/filespec.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/phpBB/phpbb/files/filespec.php b/phpBB/phpbb/files/filespec.php
index 2fdba2d793..d14c9a226d 100644
--- a/phpBB/phpbb/files/filespec.php
+++ b/phpBB/phpbb/files/filespec.php
@@ -119,6 +119,20 @@ class filespec
}
/**
+ * 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
*
* @param real|unique|unique_ext $mode real creates a realname, filtering some characters, lowering every character. Unique creates an unique filename