mirror of
https://github.com/joomla/joomla-cms.git
synced 2024-06-28 16:13:42 +00:00
[#28967] Save & Close of Menu Item results in Fatal Error
This commit is contained in:
parent
ecf937b0a8
commit
95e663d54f
|
@ -26,6 +26,9 @@ $ -> Language fix or change
|
|||
- -> Removed
|
||||
! -> Note
|
||||
|
||||
22-Aug-2012 Mark Dexter
|
||||
# [#28967] Save & Close of Menu Item results in Fatal Error
|
||||
|
||||
21-Aug-2012 Jean-Marie Simonet
|
||||
# [#28954] *Administrator templates positions untranslated when editing Module position
|
||||
|
||||
|
|
|
@ -9,6 +9,8 @@
|
|||
|
||||
defined('JPATH_PLATFORM') or die;
|
||||
|
||||
jimport('joomla.filesystem.folder');
|
||||
|
||||
/**
|
||||
* Tar format adapter for the JArchive class
|
||||
*
|
||||
|
|
|
@ -9,6 +9,8 @@
|
|||
|
||||
defined('JPATH_PLATFORM') or die;
|
||||
|
||||
jimport('joomla.filesystem.folder');
|
||||
|
||||
/**
|
||||
* ZIP format adapter for the JArchive class
|
||||
*
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
defined('JPATH_PLATFORM') or die;
|
||||
|
||||
jimport('joomla.base.adapterinstance');
|
||||
jimport('joomla.filesystem.folder');
|
||||
|
||||
/**
|
||||
* Component installer
|
||||
|
|
|
@ -11,6 +11,7 @@ defined('JPATH_PLATFORM') or die;
|
|||
|
||||
jimport('joomla.installer.filemanifest');
|
||||
jimport('joomla.base.adapterinstance');
|
||||
jimport('joomla.filesystem.folder');
|
||||
|
||||
/**
|
||||
* File installer
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
defined('JPATH_PLATFORM') or die;
|
||||
|
||||
jimport('joomla.base.adapterinstance');
|
||||
jimport('joomla.filesystem.folder');
|
||||
|
||||
/**
|
||||
* Language installer
|
||||
|
|
|
@ -11,6 +11,7 @@ defined('JPATH_PLATFORM') or die;
|
|||
|
||||
jimport('joomla.installer.librarymanifest');
|
||||
jimport('joomla.base.adapterinstance');
|
||||
jimport('joomla.filesystem.folder');
|
||||
|
||||
/**
|
||||
* Library installer
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
defined('JPATH_PLATFORM') or die;
|
||||
|
||||
jimport('joomla.base.adapterinstance');
|
||||
jimport('joomla.filesystem.folder');
|
||||
|
||||
/**
|
||||
* Module installer
|
||||
|
|
|
@ -11,6 +11,7 @@ defined('JPATH_PLATFORM') or die;
|
|||
|
||||
jimport('joomla.base.adapterinstance');
|
||||
jimport('joomla.installer.packagemanifest');
|
||||
jimport('joomla.filesystem.folder');
|
||||
|
||||
/**
|
||||
* Package installer
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
defined('JPATH_PLATFORM') or die;
|
||||
|
||||
jimport('joomla.base.adapterinstance');
|
||||
jimport('joomla.filesystem.folder');
|
||||
|
||||
/**
|
||||
* Plugin installer
|
||||
|
|
|
@ -11,6 +11,7 @@ defined('JPATH_PLATFORM') or die;
|
|||
|
||||
jimport('joomla.installer.extension');
|
||||
jimport('joomla.base.adapterinstance');
|
||||
jimport('joomla.filesystem.folder');
|
||||
|
||||
/**
|
||||
* Template installer
|
||||
|
|
|
@ -111,7 +111,7 @@ class JTableMenu extends JTableNested
|
|||
}
|
||||
|
||||
// Verify that a first level menu item alias is not the name of a folder.
|
||||
jimport('joomla.filesystem.folders');
|
||||
jimport('joomla.filesystem.folder');
|
||||
if ($this->parent_id == 1 && in_array($this->alias, JFolder::folders(JPATH_ROOT)))
|
||||
{
|
||||
$this->setError(JText::sprintf('JLIB_DATABASE_ERROR_MENU_ROOT_ALIAS_FOLDER', $this->alias, $this->alias));
|
||||
|
|
Loading…
Reference in New Issue
Block a user