From 8469e5dcf106c171d7e199daa9de52771d5e221d Mon Sep 17 00:00:00 2001 From: Al Warren Date: Tue, 5 Mar 2013 20:09:52 -0600 Subject: [PATCH] Fixed JFolder::create() sending wrong number of parameters to JLog::add() --- libraries/joomla/filesystem/folder.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libraries/joomla/filesystem/folder.php b/libraries/joomla/filesystem/folder.php index 1e5c15c423b8b..ab37b69af385d 100644 --- a/libraries/joomla/filesystem/folder.php +++ b/libraries/joomla/filesystem/folder.php @@ -177,7 +177,7 @@ public static function create($path = '', $mode = 0755) $nested++; if (($nested > 20) || ($parent == $path)) { - JLog::add('SOME_ERROR_CODE', __METHOD__ . ': ' . JText::_('JLIB_FILESYSTEM_ERROR_FOLDER_LOOP'), JLog::WARNING, 'jerror'); + JLog::add(__METHOD__ . ': ' . JText::_('JLIB_FILESYSTEM_ERROR_FOLDER_LOOP'), JLog::WARNING, 'jerror'); $nested--; return false; } @@ -244,7 +244,7 @@ public static function create($path = '', $mode = 0755) if ($inBaseDir == false) { // Return false for JFolder::create because the path to be created is not in open_basedir - JLog::add('SOME_ERROR_CODE', __METHOD__ . ': ' . JText::_('JLIB_FILESYSTEM_ERROR_FOLDER_PATH'), JLog::WARNING, 'jerror'); + JLog::add(__METHOD__ . ': ' . JText::_('JLIB_FILESYSTEM_ERROR_FOLDER_PATH'), JLog::WARNING, 'jerror'); return false; } } @@ -257,8 +257,8 @@ public static function create($path = '', $mode = 0755) { @umask($origmask); JLog::add( - 'SOME_ERROR_CODE', - __METHOD__ . ': ' . JText::_('JLIB_FILESYSTEM_ERROR_COULD_NOT_CREATE_DIRECTORY'), 'Path: ' . $path, JLog::WARNING, 'jerror' + __METHOD__ . ': ' . JText::_('JLIB_FILESYSTEM_ERROR_COULD_NOT_CREATE_DIRECTORY') . ', Path: ' . $path, + JLog::WARNING, 'jerror' ); return false; }