8
8
* License: GNU/GPLv2
9
9
* @see LICENSE.txt
10
10
*
11
- * This file: CLI handler (last modified: 2021.07.10 ).
11
+ * This file: CLI handler (last modified: 2022.03.24 ).
12
12
*/
13
13
14
14
namespace phpMussel \CLI ;
@@ -296,7 +296,7 @@ public function recursiveCommand(string $Command, callable $Callable): string
296
296
private function peMeta (string $ File ): string
297
297
{
298
298
return $ this ->recursiveCommand ($ File , function ($ Params ) {
299
- $ Data = $ this ->Loader ->readFileBlocks ($ Params, 0 , true );
299
+ $ Data = $ this ->Loader ->readFileContent ($ Params );
300
300
$ Returnable = '' ;
301
301
if (substr ($ Data , 0 , 2 ) !== 'MZ ' ) {
302
302
return $ this ->Loader ->L10N ->getString ('cli_pe1 ' ) . "\n" ;
@@ -393,7 +393,7 @@ private function coexFile(string $Clean): string
393
393
if (filter_var ($ Params , FILTER_VALIDATE_URL )) {
394
394
$ Data = $ this ->Loader ->Request ->request ($ Params );
395
395
} elseif (is_file ($ Params ) && is_readable ($ Params )) {
396
- $ Data = $ this ->Loader ->readFileBlocks ($ Params, 0 , true );
396
+ $ Data = $ this ->Loader ->readFileContent ($ Params );
397
397
}
398
398
if (empty ($ Data )) {
399
399
return $ this ->Loader ->L10N ->getString ('invalid_data ' ) . "\n" ;
@@ -420,7 +420,7 @@ private function hashFile(string $Clean): string
420
420
if (filter_var ($ Params , FILTER_VALIDATE_URL )) {
421
421
$ Data = $ this ->Loader ->Request ->request ($ Params );
422
422
} elseif (is_file ($ Params ) && is_readable ($ Params )) {
423
- $ Data = $ this ->Loader ->readFileBlocks ($ Params, 0 , true );
423
+ $ Data = $ this ->Loader ->readFileContent ($ Params );
424
424
}
425
425
if (empty ($ Data )) {
426
426
return $ this ->Loader ->L10N ->getString ('invalid_data ' ) . "\n" ;
0 commit comments