MDL-22922 Some hacks to prevent typo3 notices

This commit is contained in:
Martin Dougiamas 2010-06-25 03:09:53 +00:00
parent f233784d03
commit ab995c6cb9
3 changed files with 9 additions and 5 deletions

View file

@ -973,7 +973,7 @@ class t3lib_cs {
*/ */
function initCharset($charset) { function initCharset($charset) {
// Only process if the charset is not yet loaded: // Only process if the charset is not yet loaded:
if (!is_array($this->parsedCharsets[$charset])) { if (empty($this->parsedCharsets[$charset]) || !is_array($this->parsedCharsets[$charset])) {
// Conversion table filename: // Conversion table filename:
$charsetConvTableFile = PATH_t3lib.'csconvtbl/'.$charset.'.tbl'; $charsetConvTableFile = PATH_t3lib.'csconvtbl/'.$charset.'.tbl';

View file

@ -129,7 +129,7 @@
* 2242: function xmlGetHeaderAttribs($xmlData) * 2242: function xmlGetHeaderAttribs($xmlData)
* *
* SECTION: FILES FUNCTIONS * SECTION: FILES FUNCTIONS
* 2275: function getURL($url, $includeHeader=0) * 2275: function getUrl($url, $includeHeader=0)
* 2342: function writeFile($file,$content) * 2342: function writeFile($file,$content)
* 2367: function fixPermissions($file) * 2367: function fixPermissions($file)
* 2384: function writeFileToTypo3tempDir($filepath,$content) * 2384: function writeFileToTypo3tempDir($filepath,$content)
@ -2705,7 +2705,7 @@ final class t3lib_div {
* @param array Error code/message and, if $includeHeader is 1, response meta data (HTTP status and content type) * @param array Error code/message and, if $includeHeader is 1, response meta data (HTTP status and content type)
* @return string The content from the resource given as input. FALSE if an error has occured. * @return string The content from the resource given as input. FALSE if an error has occured.
*/ */
public static function getURL($url, $includeHeader = 0, $requestHeaders = false, &$report = NULL) { public static function getUrl($url, $includeHeader = 0, $requestHeaders = false, &$report = NULL) {
$content = false; $content = false;
if (isset($report)) { if (isset($report)) {

View file

@ -2,3 +2,7 @@ Description of Typo3 libraries (v 4.3.0RC1) import into Moodle
skodak, stronk7 skodak, stronk7
25 June 2010 - Martin D
I renamed getURL to getUrl since it was being called that way everywhere.
I added a check to avoid notices on lib/typo3/class.t3lib_cs.php line 976