diff --git a/code/admin/helpers/api.php b/code/admin/helpers/api.php index e9a0eee..43012c5 100644 --- a/code/admin/helpers/api.php +++ b/code/admin/helpers/api.php @@ -8,9 +8,9 @@ // No direct access. defined('_JEXEC') or die(); +use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; -use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Object\CMSObject; use Joomla\CMS\Factory; diff --git a/code/admin/language/en-GB/en-GB.com_api.sys.ini b/code/admin/language/en-GB/en-GB.com_api.sys.ini index 70b5066..875e132 100644 --- a/code/admin/language/en-GB/en-GB.com_api.sys.ini +++ b/code/admin/language/en-GB/en-GB.com_api.sys.ini @@ -9,6 +9,7 @@ COM_API_XML_DESCRIPTION="Multi" COM_API_TEST_LABEL="Test label" COM_API_TITLE_KEYS="API Keys" +COM_API_TITLE_LOGS="Request Logs" COM_API_SHOW_TABLES_SQL_STATEMENT="SHOW FULL TABLES WHERE tables_in_%s LIKE %s" diff --git a/code/admin/models/fields/createdby.php b/code/admin/models/fields/createdby.php index 6fc3548..03a6aae 100644 --- a/code/admin/models/fields/createdby.php +++ b/code/admin/models/fields/createdby.php @@ -7,7 +7,6 @@ */ defined('JPATH_BASE') or die(); - use Joomla\CMS\Form\FormField; use Joomla\CMS\Factory; @@ -16,7 +15,7 @@ * * @since 1.0 */ -class JFormFieldCreatedby extends JFormField +class FormFieldCreatedby extends FormField { /** * The form field type. diff --git a/code/admin/views/cpanel/view.html.php b/code/admin/views/cpanel/view.html.php index 3bd7bdf..f016609 100644 --- a/code/admin/views/cpanel/view.html.php +++ b/code/admin/views/cpanel/view.html.php @@ -7,9 +7,9 @@ */ defined('_JEXEC') or die(); - -use Joomla\CMS\MVC\View\HtmlView; + use Joomla\CMS\Language\Text; +use Joomla\CMS\Toolbar\ToolbarHelper; /** * Cpanel class @@ -54,7 +54,7 @@ public function display($tpl = null) */ private function generateToolbar() { - JToolBarHelper::title(Text::_('COM_API') . ': ' . Text::_('COM_API_CONTROL_PANEL')); - JToolBarHelper::preferences('com_api', 500, 500); + ToolbarHelper::title(Text::_('COM_API') . ': ' . Text::_('COM_API_CONTROL_PANEL')); + ToolbarHelper::preferences('com_api', 500, 500); } } diff --git a/code/admin/views/key/tmpl/edit.php b/code/admin/views/key/tmpl/edit.php index b9f46b6..e28a88c 100644 --- a/code/admin/views/key/tmpl/edit.php +++ b/code/admin/views/key/tmpl/edit.php @@ -28,36 +28,36 @@ HTMLHelper::_('behavior.keepalive'); // Import CSS -$document = Factory::getDocument(); -$document->addStyleSheet('components/com_api/assets/css/api.css'); -?> +HTMLHelper::_('stylesheet','components/com_api/assets/css/api.css'); - + "); + ?>