Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
8b8a8c2
[4.0] [com_media] Various changes for the delete vue (#24258)
infograf768 Mar 20, 2019
632d686
[4.0] Add support to unpublish module from Control Panel (#23934)
C-Lodder Mar 20, 2019
82b4a89
[4.0] Replace Joomla\DI\Container::exists() calls (#24263)
SharkyKZ Mar 20, 2019
c4c005b
[4.0] Deprecated language strings (#24267)
brianteeman Mar 20, 2019
0b3ddba
[4.0] [a11y] Remove redundant title from templates (#24277)
brianteeman Mar 21, 2019
f6d952f
Removing module chrome "no" (#24010)
Hackwar Mar 21, 2019
1522748
[4.0] Fix com_media untranslated string (#24285)
brianteeman Mar 21, 2019
c570c6c
[4.0] [a11y] Remove redundant title from site components (#24282)
brianteeman Mar 21, 2019
73c7fb0
[4.0] [a11y] Remove redundant title from modules (#24278)
brianteeman Mar 21, 2019
5255bf4
[4.0]improved contrast in icon during installation (#24213)
bahl24 Mar 21, 2019
489f527
[4.0][com_users] Add cancel action to profile form (#24088)
SharkyKZ Mar 21, 2019
d6901df
[4.0] Modals: using default padding (#24274)
infograf768 Mar 21, 2019
d8da246
[4.0][a11y]Extra column for icon featured (#23757)
chmst Mar 21, 2019
444b843
[4.0] Remove sidebar from com_installer (#24080)
brianteeman Mar 21, 2019
a53a82d
[4.0] com_templates sidebar (#24092)
brianteeman Mar 21, 2019
0b3e1fe
[4.0][a11y] Extra column for icon featured in com_contact (#23885)
hardik-codes Mar 21, 2019
3b46dc3
[4.0] Fix modified time for new entries in fields and field groups (#…
chmst Mar 21, 2019
2e1b2b3
[4.0][mod_articles_category] Remove unused variable (#24053)
SharkyKZ Mar 21, 2019
bf5d2b4
[4.0] Add type attribute (#24123)
SharkyKZ Mar 21, 2019
2376b24
Add role="search" to the form (#23686)
chmst Mar 21, 2019
98d1d34
Add a filter featured to content articles (#23497)
chmst Mar 21, 2019
a73ec55
[4.0] Fix disable and enable buttons (#24276)
maliouris Mar 21, 2019
bb66824
[4.0] [a11y] Remove title from fieldset (#24275)
brianteeman Mar 21, 2019
da34414
[4.0] [a11y] Remove redundant title from layouts and plugins (#24280)
brianteeman Mar 21, 2019
38dde05
[4.0] Get document from application in HTMLHelper (#24272)
SharkyKZ Mar 21, 2019
652cef3
[4.0] [com_mdules] Batch language broken (#24273)
infograf768 Mar 21, 2019
8499c2c
[4.0] Status Module: Edit Account redirection (#24281)
infograf768 Mar 21, 2019
250f325
[4.0] Redirect to CPanel when module in cpanle position has been edit…
infograf768 Mar 21, 2019
a07df9e
[4.0] [a11y] Remove redundant title from admin components (#24283)
brianteeman Mar 21, 2019
c673e96
[4.0] Remove description label (#23946)
brianteeman Mar 21, 2019
20c1c8a
[4.0] Label com_content (#24242)
hardik-codes Mar 21, 2019
5056fb7
[4.0] Change color to have sufficient contrast as per a11y standards …
hardik-codes Mar 21, 2019
c481d91
[4.0][plg_authentication_joomla] Use injected app and DB (#24206)
SharkyKZ Mar 21, 2019
851ff66
[4.0] Use a factory to create user objects from (#22849)
laoneo Mar 21, 2019
586a66d
[4.0] Fix FolderlistField.php on Windows (#23769)
Mar 21, 2019
2fe1ce2
[4.0] - install on Postgresql fixes (#24146)
alikon Mar 21, 2019
8c4b205
[4.0] Fix inconsistency in order of toolbar buttons in com_users (#24…
hardik-codes Mar 21, 2019
2bb3bd2
[4.0] Use namespaced classes in Form library (#24212)
SharkyKZ Mar 21, 2019
3758b38
[4.0] Use namespaced classes in Menu library (#24222)
SharkyKZ Mar 21, 2019
d63581f
[4.0] Use namespaced classes in Helper library (#24221)
SharkyKZ Mar 21, 2019
a284ada
[4.0] Sidebar failure (#24289)
brianteeman Mar 21, 2019
69931c3
[4.0][com_content] Remove column-related code. (#23123)
SharkyKZ Mar 21, 2019
529f00c
fix javascript linter failures (#24309)
rdeutz Mar 22, 2019
9f934a3
[4.0] Webcomponents not loading without media version (#24301)
SharkyKZ Mar 22, 2019
c6d5af6
[4.0] Date in example string (#24310)
brianteeman Mar 22, 2019
5a3bfc6
Move defined statement (#24313)
Mar 22, 2019
0f07f58
[4.0] com_admin.ini review (#24296)
brianteeman Mar 22, 2019
8e3243b
[4.0] Remove magic quotes (#24320)
brianteeman Mar 23, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ pipeline:
- Xvfb -screen 0 1024x768x24 -ac +extension GLX +render -noreset > /dev/null 2>&1 &
- sleep 3
- fluxbox > /dev/null 2>&1 &
- cd /drone/src/github.com/joomla/joomla-cms && npm run lint:js
- npm run lint:js

javascript-tests:
image: joomlaprojects/docker-systemtests:develop
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ CREATE TABLE "#__privacy_requests" (
"user_id" bigint DEFAULT 0 NOT NULL,
PRIMARY KEY ("id")
);
CREATE INDEX "#__fields_idx_checked_out" ON "#__privacy_requests" ("checked_out");
CREATE INDEX "#__fields_idx_user_id" ON "#__privacy_requests" ("user_id");
CREATE INDEX "#__privacy_requests_idx_checked_out" ON "#__privacy_requests" ("checked_out");
CREATE INDEX "#__privacy_requests_idx_user_id" ON "#__privacy_requests" ("user_id");
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

defined('_JEXEC') or die;

use Joomla\CMS\Language\Text;

defined('_JEXEC') or die;
?>
<fieldset title="<?php echo Text::_('COM_CONFIG_FTP_DETAILS'); ?>">
<fieldset>
<legend><?php echo Text::_('COM_CONFIG_FTP_DETAILS'); ?></legend>
<?php echo Text::_('COM_CONFIG_FTP_DETAILS_TIP'); ?>
<?php if ($this->ftp instanceof Exception) : ?>
Expand Down
3 changes: 2 additions & 1 deletion administrator/components/com_contact/tmpl/contact/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@
<?php echo HTMLHelper::_('uitab.addTab', 'myTab', 'misc', Text::_('JGLOBAL_FIELDSET_MISCELLANEOUS')); ?>
<div class="row">
<div class="col-md-12">
<?php echo $this->form->renderField('misc'); ?>
<?php echo $this->form->getLabel('misc'); ?>
<?php echo $this->form->getInput('misc'); ?>
</div>
</div>
<?php echo HTMLHelper::_('uitab.endTab'); ?>
Expand Down
12 changes: 10 additions & 2 deletions administrator/components/com_contact/tmpl/contacts/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@
<td style="width:1%" class="text-center">
<?php echo HTMLHelper::_('grid.checkall'); ?>
</td>
<th scope="col" style="width:1%" class="text-center">
<?php echo HTMLHelper::_('searchtools.sort', 'JFEATURED', 'a.featured', $listDirn, $listOrder); ?>
</th>
<th scope="col" style="width:1%; min-width:85px" class="text-center">
<?php echo HTMLHelper::_('searchtools.sort', 'JSTATUS', 'a.published', $listDirn, $listOrder); ?>
</th>
Expand Down Expand Up @@ -124,12 +127,17 @@
<td class="text-center">
<?php echo HTMLHelper::_('grid.id', $i, $item->id); ?>
</td>
<td class="text-center">
<div class="btn-group">
<?php echo HTMLHelper::_('contactadministrator.featured', $item->featured, $i, $canChange); ?>
</div>
</td>
<td class="text-center">
<div class="btn-group">
<?php echo HTMLHelper::_('jgrid.published', $item->published, $i, 'contacts.', $canChange, 'cb', $item->publish_up, $item->publish_down); ?>
<?php echo HTMLHelper::_('contactadministrator.featured', $item->featured, $i, $canChange); ?>
</div>
</div>
</td>

<th scope="row" class="has-context">
<div>
<?php if ($item->checked_out) : ?>
Expand Down
11 changes: 11 additions & 0 deletions administrator/components/com_content/Model/ArticlesModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ protected function populateState($ordering = 'a.id', $direction = 'desc')
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
$this->setState('filter.search', $search);

$featured = $this->getUserStateFromRequest($this->context . '.filter.featured', 'filter_featured', '');
$this->setState('filter.featured', $featured);

$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
$this->setState('filter.published', $published);

Expand Down Expand Up @@ -315,6 +318,14 @@ protected function getListQuery()
$query->where('a.access IN (' . $access . ')');
}

// Filter by featured.
$featured = (string) $this->getState('filter.featured');

if (in_array($featured, ['0','1']))
{
$query->where('a.featured =' . (int) $featured);
}

// Filter by access level on categories.
if (!$user->authorise('core.admin'))
{
Expand Down
11 changes: 11 additions & 0 deletions administrator/components/com_content/forms/filter_articles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,17 @@
hint="JSEARCH_FILTER"
/>

<field
name="featured"
type="list"
onchange="this.form.submit();"
default=""
>
<option value="">COM_CONTENT_SELECT_FEATURED</option>
<option value="0">COM_CONTENT_FILTER_FEATURED_NO</option>
<option value="1">COM_CONTENT_FILTER_FEATURED_YES</option>
</field>

<field
name="stage"
type="workflowstage"
Expand Down
1 change: 1 addition & 0 deletions administrator/components/com_content/tmpl/article/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
<div class="row">
<div class="col-md-9">
<fieldset class="adminform">
<?php echo $this->form->getLabel('articletext'); ?>
<?php echo $this->form->getInput('articletext'); ?>
</fieldset>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@
<td style="width:1%" class="text-center">
<?php echo HTMLHelper::_('grid.checkall'); ?>
</td>
<th scope="col" style="width:1%" class="text-center">
<?php echo JText::_('JFEATURED'); ?>
</th>
<th scope="col" style="width:1%; min-width:85px" class="text-center">
<?php echo JText::_('JSTATUS'); ?>
</th>
Expand Down Expand Up @@ -207,10 +210,12 @@
<td class="text-center">
<?php echo HTMLHelper::_('grid.id', $i, $item->id); ?>
</td>
<td class="text-center">
<?php echo $featuredButton->render($item->featured, $i, ['disabled' => !$canChange]); ?>
</td>
<td class="article-status">
<div class="d-flex">
<div class="btn-group tbody-icon mr-1">
<?php echo $featuredButton->render($item->featured, $i, ['disabled' => !$canChange]); ?>
<?php

$options = [
Expand Down
9 changes: 8 additions & 1 deletion administrator/components/com_cpanel/tmpl/cpanel/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,16 @@
defined('_JEXEC') or die;

use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Helper\ModuleHelper;
use Joomla\CMS\HTML\HTMLHelper;

HTMLHelper::_('behavior.core');
Text::script('COM_CPANEL_UNPUBLISH_MODULE_SUCCESS');
Text::script('COM_CPANEL_UNPUBLISH_MODULE_ERROR');

HTMLHelper::_('script', 'com_cpanel/admin-cpanel-default.min.js', array('version' => 'auto', 'relative' => true));

$user = Factory::getUser();
?>

Expand All @@ -31,7 +38,7 @@
</div>
<?php endif; ?>
</div>
<div class="row">
<div id="cpanel-modules" class="row">
<?php
$cols = 0;
foreach ($this->modules as $module)
Expand Down
8 changes: 3 additions & 5 deletions administrator/components/com_fields/Table/FieldTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,16 +143,14 @@ public function check()
}
else
{
$this->modified_time = $this->getDbo()->getNullDate();
$this->modified_by = 0;

if (!(int) $this->created_time)
{
$this->created_time = $date->toSql();
}

if (!(int) $this->modified_time)
{
$this->modified_time = $date->toSql();
}

if (empty($this->created_user_id))
{
$this->created_user_id = $user->get('id');
Expand Down
3 changes: 3 additions & 0 deletions administrator/components/com_fields/Table/GroupTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ public function check()
}
else
{
$this->modified = $this->getDbo()->getNullDate();
$this->modified_by = 0;

if (!(int) $this->created)
{
$this->created = $date->toSql();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ public function display($cachable = false, $urlparams = false)
// Push document object into the view.
$view->document = $document;

// Load the submenu.
InstallerHelper::addSubmenu($vName);
$view->display();
}

Expand Down
53 changes: 0 additions & 53 deletions administrator/components/com_installer/Helper/InstallerHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,59 +22,6 @@
*/
class InstallerHelper
{
/**
* Configure the Linkbar.
*
* @param string $vName The name of the active view.
*
* @return void
*
* @since 1.6
*/
public static function addSubmenu($vName = 'install')
{
\JHtmlSidebar::addEntry(
Text::_('COM_INSTALLER_SUBMENU_INSTALL'),
'index.php?option=com_installer',
$vName == 'install'
);
\JHtmlSidebar::addEntry(
Text::_('COM_INSTALLER_SUBMENU_UPDATE'),
'index.php?option=com_installer&view=update',
$vName == 'update'
);
\JHtmlSidebar::addEntry(
Text::_('COM_INSTALLER_SUBMENU_MANAGE'),
'index.php?option=com_installer&view=manage',
$vName == 'manage'
);
\JHtmlSidebar::addEntry(
Text::_('COM_INSTALLER_SUBMENU_DISCOVER'),
'index.php?option=com_installer&view=discover',
$vName == 'discover'
);
\JHtmlSidebar::addEntry(
Text::_('COM_INSTALLER_SUBMENU_DATABASE'),
'index.php?option=com_installer&view=database',
$vName == 'database'
);
\JHtmlSidebar::addEntry(
Text::_('COM_INSTALLER_SUBMENU_WARNINGS'),
'index.php?option=com_installer&view=warnings',
$vName == 'warnings'
);
\JHtmlSidebar::addEntry(
Text::_('COM_INSTALLER_SUBMENU_LANGUAGES'),
'index.php?option=com_installer&view=languages',
$vName == 'languages'
);
\JHtmlSidebar::addEntry(
Text::_('COM_INSTALLER_SUBMENU_UPDATESITES'),
'index.php?option=com_installer&view=updatesites',
$vName == 'updatesites'
);
}

/**
* Get a list of filter options for the extension types.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@ protected function addToolbar()
ToolbarHelper::custom('discover.refresh', 'refresh', 'refresh', 'COM_INSTALLER_TOOLBAR_DISCOVER', false);
ToolbarHelper::divider();

\JHtmlSidebar::setAction('index.php?option=com_installer&view=discover');

parent::addToolbar();

ToolbarHelper::help('JHELP_EXTENSIONS_EXTENSION_MANAGER_DISCOVER');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,5 @@ protected function addToolbar()
ToolbarHelper::preferences('com_installer');
ToolbarHelper::divider();
}

// Render side bar.
$this->sidebar = \JHtmlSidebar::render();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@ protected function addToolbar()
ToolbarHelper::divider();
}

\JHtmlSidebar::setAction('index.php?option=com_installer&view=manage');

parent::addToolbar();
ToolbarHelper::help('JHELP_EXTENSIONS_EXTENSION_MANAGER_MANAGE');
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ protected function addToolbar()
ToolbarHelper::custom('update.purge', 'purge', 'purge', 'COM_INSTALLER_TOOLBAR_PURGE', false);
ToolbarHelper::divider();

\JHtmlSidebar::setAction('index.php?option=com_installer&view=manage');

parent::addToolbar();
ToolbarHelper::help('JHELP_EXTENSIONS_EXTENSION_MANAGER_UPDATE');
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,6 @@ protected function addToolbar()
ToolbarHelper::custom('updatesites.rebuild', 'refresh.png', 'refresh_f2.png', 'JTOOLBAR_REBUILD', false);
}

\JHtmlSidebar::setAction('index.php?option=com_installer&view=updatesites');

parent::addToolbar();
ToolbarHelper::help('JHELP_EXTENSIONS_EXTENSION_MANAGER_UPDATESITES');
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@
<div id="installer-database" class="clearfix">
<form action="<?php echo Route::_('index.php?option=com_installer&view=database'); ?>" method="post" name="adminForm" id="adminForm">
<div class="row">
<div id="j-sidebar-container" class="col-md-2">
<?php echo $this->sidebar; ?>
</div>
<div class="col-md-10">
<div class="col-md-12">
<div id="j-main-container" class="j-main-container">
<div class="control-group">
<?php echo LayoutHelper::render('joomla.searchtools.default', array('view' => $this)); ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@
<div id="installer-discover" class="clearfix">
<form action="<?php echo Route::_('index.php?option=com_installer&view=discover'); ?>" method="post" name="adminForm" id="adminForm">
<div class="row">
<div id="j-sidebar-container" class="col-md-2">
<?php echo $this->sidebar; ?>
</div>
<div class="col-md-10">
<div class="col-md-12">
<div id="j-main-container" class="j-main-container">
<?php if ($this->showMessage) : ?>
<?php echo $this->loadTemplate('message'); ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,7 @@

<form enctype="multipart/form-data" action="<?php echo Route::_('index.php?option=com_installer&view=install'); ?>" method="post" name="adminForm" id="adminForm">
<div class="row">
<div id="j-sidebar-container" class="col-md-2">
<?php echo $this->sidebar; ?>
</div>
<div class="col-md-10">
<div class="col-md-12">
<div id="j-main-container" class="j-main-container">
<?php // Render messages set by extension install scripts here ?>
<?php if ($this->showMessage) : ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
use Joomla\CMS\Language\Text;

?>
<fieldset title="<?php echo Text::_('COM_INSTALLER_MSG_DESCFTPTITLE'); ?>">
<fieldset>
<legend><?php echo Text::_('COM_INSTALLER_MSG_DESCFTPTITLE'); ?></legend>

<?php echo Text::_('COM_INSTALLER_MSG_DESCFTP'); ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@
<div id="installer-languages" class="clearfix">
<form action="<?php echo Route::_('index.php?option=com_installer&view=languages'); ?>" method="post" name="adminForm" id="adminForm">
<div class="row">
<div id="j-sidebar-container" class="col-md-2">
<?php echo $this->sidebar; ?>
</div>
<div class="col-md-10">
<div class="col-md-12">
<div id="j-main-container" class="j-main-container">
<?php echo LayoutHelper::render('joomla.searchtools.default', array('view' => $this, 'options' => array('filterButton' => false))); ?>
<?php if (empty($this->items)) : ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@
<div id="installer-manage" class="clearfix">
<form action="<?php echo Route::_('index.php?option=com_installer&view=manage'); ?>" method="post" name="adminForm" id="adminForm">
<div class="row">
<div id="j-sidebar-container" class="col-md-2">
<?php echo $this->sidebar; ?>
</div>
<div class="col-md-10">
<div class="col-md-12">
<div id="j-main-container" class="j-main-container">
<?php if ($this->showMessage) : ?>
<?php echo $this->loadTemplate('message'); ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@
<div id="installer-update" class="clearfix">
<form action="<?php echo Route::_('index.php?option=com_installer&view=update'); ?>" method="post" name="adminForm" id="adminForm">
<div class="row">
<div id="j-sidebar-container" class="col-md-2">
<?php echo $this->sidebar; ?>
</div>
<div class="col-md-10">
<div class="col-md-12">
<div id="j-main-container" class="j-main-container">
<?php if ($this->showMessage) : ?>
<?php echo $this->loadTemplate('message'); ?>
Expand Down
Loading