mirror of
https://github.com/joomla-extensions/weblinks.git
synced 2024-11-16 17:45:08 +00:00
Make it joomla 4 compatible
This commit is contained in:
parent
84a98f9718
commit
f38c613dfc
@ -35,6 +35,7 @@
|
|||||||
<field
|
<field
|
||||||
name="catid"
|
name="catid"
|
||||||
type="categoryedit"
|
type="categoryedit"
|
||||||
|
addfieldprefix="Joomla\Component\Categories\Administrator\Field"
|
||||||
extension="com_weblinks"
|
extension="com_weblinks"
|
||||||
label="JCATEGORY"
|
label="JCATEGORY"
|
||||||
description="COM_WEBLINKS_FIELD_CATEGORY_DESC"
|
description="COM_WEBLINKS_FIELD_CATEGORY_DESC"
|
||||||
|
@ -38,8 +38,11 @@ class WeblinksTableWeblink extends JTable
|
|||||||
// Set the published column alias
|
// Set the published column alias
|
||||||
$this->setColumnAlias('published', 'state');
|
$this->setColumnAlias('published', 'state');
|
||||||
|
|
||||||
JTableObserverTags::createObserver($this, array('typeAlias' => 'com_weblinks.weblink'));
|
if (version_compare(JVERSION, '4.0', '<' ) == 1)
|
||||||
JTableObserverContenthistory::createObserver($this, array('typeAlias' => 'com_weblinks.weblink'));
|
{
|
||||||
|
JTableObserverTags::createObserver($this, array('typeAlias' => 'com_weblinks.weblink'));
|
||||||
|
JTableObserverContenthistory::createObserver($this, array('typeAlias' => 'com_weblinks.weblink'));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -67,7 +67,7 @@ class WeblinksViewWeblinks extends JViewLegacy
|
|||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
|
|
||||||
// Get the toolbar object instance
|
// Get the toolbar object instance
|
||||||
$bar = JToolBar::getInstance('toolbar');
|
$bar = JToolbar::getInstance('toolbar');
|
||||||
|
|
||||||
JToolbarHelper::title(JText::_('COM_WEBLINKS_MANAGER_WEBLINKS'), 'link weblinks');
|
JToolbarHelper::title(JText::_('COM_WEBLINKS_MANAGER_WEBLINKS'), 'link weblinks');
|
||||||
|
|
||||||
@ -103,7 +103,6 @@ class WeblinksViewWeblinks extends JViewLegacy
|
|||||||
if ($user->authorise('core.create', 'com_weblinks') && $user->authorise('core.edit', 'com_weblinks')
|
if ($user->authorise('core.create', 'com_weblinks') && $user->authorise('core.edit', 'com_weblinks')
|
||||||
&& $user->authorise('core.edit.state', 'com_weblinks'))
|
&& $user->authorise('core.edit.state', 'com_weblinks'))
|
||||||
{
|
{
|
||||||
JHtml::_('bootstrap.modal', 'collapseModal');
|
|
||||||
$title = JText::_('JTOOLBAR_BATCH');
|
$title = JText::_('JTOOLBAR_BATCH');
|
||||||
|
|
||||||
// Instantiate a new JLayoutFile instance and render the batch button
|
// Instantiate a new JLayoutFile instance and render the batch button
|
||||||
|
Loading…
Reference in New Issue
Block a user