 16.03.2010 в 23:38
Код: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 2952: function getFolderList($base = null)
{
global $mainframe;
// Get some paths from the request
if (empty($base)) {
58: $base = COM_MEDIA_BASE;
}
// Get the list of folders
jimport('joomla.filesystem.folder');
$folders = JFolder::folders($base, '.', true, true);
// Load appropriate language files
$lang = & JFactory::getLanguage();
$lang->load('', JPATH_ADMINISTRATOR);
$lang->load(JRequest::getCmd( 'option' ), JPATH_ADMINISTRATOR);
$document =& JFactory::getDocument();
$document->setTitle(JText::_('Insert Image'));
// Build the array of select options for the folder list
$options[] = JHTML::_('select.option', "","/");
75: foreach ($folders as $folder) {
$folder = str_replace(COM_MEDIA_BASE, "", $folder);
$value = substr($folder, 1);
$text = str_replace(DS, "/", $folder);
$options[] = JHTML::_('select.option', $value, $text);
}
анализ показывает, что или или.
или функции передается неверный параметр base (строка 52), или глобальна переменная COM_MEDIA_BASE потерта.
скорее первое, а это наталкивает на мысль, что наемник для каких-то своих целей переместил какую-то из директорий джумлы куда-то (простым копи-пастом, не переустанавливаю всю джумлу)... если же причина по 2й схеме, то возможно что-то с правами настроечных файлов...
--------------
в любом случае - печально....
|