mirror of
https://github.com/joomla-extensions/weblinks.git
synced 2025-02-04 10:18:25 +00:00
Simplify validateSection as we do not support custom fields in other view
This commit is contained in:
parent
b668befbb2
commit
6e0dfb59af
@ -80,18 +80,6 @@ class WeblinksComponent extends MVCComponent implements CategoryServiceInterface
|
||||
*/
|
||||
public function validateSection($section, $item = null)
|
||||
{
|
||||
if (Factory::getApplication()->isClient('site'))
|
||||
{
|
||||
// On the front end we need to map some sections
|
||||
switch ($section)
|
||||
{
|
||||
// Adding/Editing a weblink
|
||||
case 'form':
|
||||
$section = 'weblink';
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if ($section != 'weblink')
|
||||
{
|
||||
// We don't know other sections
|
||||
|
Loading…
x
Reference in New Issue
Block a user