Commit f1ca7e0a authored by Sigrid Suski's avatar Sigrid Suski

(#) Usage of wrong translation method for some error messages (Txt() instead of Error())

parent 21f78740
......@@ -37,6 +37,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
(+) Introducing of semantic versioning
(#) Braces of placeholders aree changed to entities when in urls (Issue #11)
(#) Usage of wrong translation method for some error messages (Txt() instead of Error())
### 1.0.13 (05 June 2020)
......
......@@ -17,7 +17,7 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
*
* @created Thu, Dec 1, 2016 by Radek Suski
* @modified 02 June 2020 by Sigrid Suski
* @modified 17 July 2020 by Sigrid Suski
*/
namespace Sobi\FileSystem;
......@@ -221,7 +221,7 @@ abstract class FileSystem
}
$return = \Jfile::write( $file, $buffer );
if ( $return === false ) {
throw new Exception( Framework::Txt( 'CANNOT_WRITE_TO_FILE_AT', $file ) );
throw new Exception( Framework::Error( 'CANNOT_WRITE_TO_FILE_AT', $file ) );
}
else {
return $return;
......@@ -272,7 +272,7 @@ abstract class FileSystem
{
$path = self::Clean( $path );
if ( !( \JFolder::create( $path, $mode ) ) ) {
throw new Exception( Framework::Txt( 'CANNOT_CREATE_DIR', str_replace( C::ROOT, null, $path ) ) );
throw new Exception( Framework::Error( 'CANNOT_CREATE_DIR', str_replace( C::ROOT, null, $path ) ) );
}
else {
return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment