Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove readBase64() from File utility, since it is not commonly used.

  • Loading branch information...
commit b42a2d45e736d898582f42d0cd978c390d069e37 1 parent 987c018
@jmillerdesign jmillerdesign authored
Showing with 1 addition and 12 deletions.
  1. +1 −1  lib/Cake/Network/Email/CakeEmail.php
  2. +0 −11 lib/Cake/Utility/File.php
View
2  lib/Cake/Network/Email/CakeEmail.php
@@ -1386,7 +1386,7 @@ protected function _attachFiles($boundary = null) {
*/
protected function _readFile($path) {
$File = new File($path);
- return $File->readBase64();
+ return chunk_split(base64_encode($File->read()));
}
/**
View
11 lib/Cake/Utility/File.php
@@ -181,17 +181,6 @@ public function read($bytes = false, $mode = 'rb', $force = false) {
}
/**
- * Return the contents of this File as a base64 version of the file contents.
- * The string is split into smaller chunks to match RFC 2045 semantics.
- *
- * @return string File contents in base64 encoding
- * @link http://book.cakephp.org/2.0/en/core-utility-libraries/file-folder.html#File::readBase64
- */
- public function readBase64() {
- return chunk_split(base64_encode($this->read()));
- }
-
-/**
* Sets or gets the offset for the currently opened file.
*
* @param integer|boolean $offset The $offset in bytes to seek. If set to false then the current offset is returned.
Please sign in to comment.
Something went wrong with that request. Please try again.