Skip to content
This repository has been archived by the owner on Feb 4, 2021. It is now read-only.

Upgrade to Joomla 3.6.5 #316

Merged
merged 59 commits into from
Apr 20, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
a714510
#315: Apply joomla 3.6.5 changes to com:config and com:cpanel
allanpilarca Jan 13, 2017
62bd3e9
#315: Apply joomla 3.6.5 changes to com:installer
allanpilarca Jan 13, 2017
cf7822e
#315: Apply joomla 3.6.5 changes in com:languages
allanpilarca Jan 16, 2017
0a449f1
#315: Apply joomla 3.6.5 changes in com:menus
allanpilarca Jan 16, 2017
d600e9c
#315: Apply joomla 3.6.5 changes in com:modules
allanpilarca Jan 16, 2017
0ab6f79
#315: Apply changes in com:plugins
allanpilarca Jan 17, 2017
5cfcaeb
#315: Apply joomla 3.6.5 changes in com:templates
allanpilarca Jan 17, 2017
ec2b318
#315: Apply joomla 3.6.5 changes in com:users
allanpilarca Jan 20, 2017
6b108a6
#315: Apply joomla 3.6.5 changes in admin modules
allanpilarca Jan 23, 2017
530333b
#315: Apply joomla 3.6.5 changes in site com:users
allanpilarca Jan 23, 2017
77d4803
#315 Apply joomla 3.6.5 changes in site modules
allanpilarca Jan 23, 2017
0858fb9
#315: Apply joomla 3.6.5 changes in language
allanpilarca Jan 23, 2017
fca3d53
#315: Apply joomla 3.6.5 changes in layouts
allanpilarca Jan 23, 2017
5057fcd
#315: Apply joomla 3.6.5 changes in libraries
allanpilarca Jan 23, 2017
ad07206
#315: Apply joomla 3.6.5 changes in libraries
allanpilarca Jan 25, 2017
338707d
#315: Apply joomla 3.6.5 changes in libraries
allanpilarca Jan 26, 2017
a7bb54b
#315: Apply joomla 3.6.5 changes in libraries
allanpilarca Jan 26, 2017
313dcc8
#315: Re-apply platform changes
allanpilarca Jan 26, 2017
3f1ef2b
#315: Apply joomla 3.6.5 changes in libraries
allanpilarca Jan 26, 2017
e332526
#315: Apply joomla 3.6.5 changes in libraries
allanpilarca Jan 27, 2017
77723e7
#315: Replace JError with PHP Exceptions
allanpilarca Jan 27, 2017
15634c5
#315: Rename user related database tables
allanpilarca Jan 27, 2017
a018bd3
#315: Apply joomla 3.6.5 changes in templates
allanpilarca Jan 27, 2017
93c1787
#315: Apply joomla 3.6.5 changes in media
allanpilarca Jan 27, 2017
e0164b8
#315: Apply joomla 3.6.5 changes in tinymce
allanpilarca Jan 27, 2017
c634405
#315: Apply joomla 3.6.5 changes in site templates
allanpilarca Jan 27, 2017
14b3143
#315: Include JSubMenuHelper
allanpilarca Jan 27, 2017
79e96de
#315: Fix baseFolder for templates
allanpilarca Jan 30, 2017
3fb3ff3
#315: Remove user notes
allanpilarca Jan 30, 2017
79c44b1
#315: Include categories table only if com_categories extension is en…
allanpilarca Jan 30, 2017
822c149
#315: Apply joomla 3.6.5 changes in schema
allanpilarca Jan 30, 2017
54649b0
#315: Apply joomla 3.6.5 changes
allanpilarca Feb 9, 2017
c3b5256
#315: Add Random_* Compatibility Library for using the new PHP 7 rand…
allanpilarca Feb 13, 2017
0c040d6
#315: Update composer.lock
allanpilarca Feb 13, 2017
a64d7db
#315: Fix undefined variables in login form
allanpilarca Feb 13, 2017
433ffdc
#315: Fix menu table
allanpilarca Feb 13, 2017
cbc8dc2
#315: Use correct JHtmlUsers
allanpilarca Feb 13, 2017
3bede53
#315: Add cache folder
allanpilarca Feb 13, 2017
b47a8b5
#315: Apply joomla 3.6.5 changes in plugins
allanpilarca Feb 13, 2017
bf1fe0d
#315: Apply joomla 3.6.5 changes in languages
allanpilarca Feb 14, 2017
5bb5f7a
#315: Typo in getting error code
allanpilarca Feb 14, 2017
b2b1323
#315: Fix rule path
allanpilarca Feb 14, 2017
d90e2af
#315: Add missing language
allanpilarca Feb 14, 2017
02a3edb
#315: Fix the batch method for menu items and modules
allanpilarca Feb 14, 2017
e485691
#315: Fix path to tinymce js
allanpilarca Feb 15, 2017
aba371a
#315: Add default value for mailfrom in configuration
allanpilarca Feb 15, 2017
a71033d
#315: Update phpmailer from 5.2.9 to 5.2.16
allanpilarca Feb 15, 2017
06e50bf
#315: Outcomment update logic in installer
allanpilarca Feb 15, 2017
64a9578
#315: Fix path to com:media assets
allanpilarca Feb 24, 2017
d1146de
#315: Fix includeRelativeFiles path, use JPATH_WEB instead of JPATH_ROOT
allanpilarca Mar 1, 2017
379b4c6
#315: Remove request to com_ajax
allanpilarca Mar 7, 2017
ca84e86
#315: No need to set the full path to include the script, this has al…
allanpilarca Mar 8, 2017
ff1e521
#315: Fix getting the path for fields, forms and rules
allanpilarca Mar 8, 2017
92bd6d5
Revert "#315: Fix rule path"
allanpilarca Mar 8, 2017
419b0ac
#315: Fix template path for custom layout
allanpilarca Mar 21, 2017
9f26e04
#315: Remove unused tfa in login form
allanpilarca Mar 23, 2017
fd7987e
#315: Fix finding favicon path
allanpilarca Mar 24, 2017
37c72af
Merge branch 'master' into feature/315-joomla-3.6.5-upgrade
johanjanssens Apr 19, 2017
cdc67e1
#315 - Fix typo
johanjanssens Apr 19, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion app/administrator/components/com_config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @package Joomla.Administrator
* @subpackage com_config
*
* @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
* @copyright Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

Expand Down
2 changes: 1 addition & 1 deletion app/administrator/components/com_config/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<name>com_config</name>
<author>Joomla! Project</author>
<creationDate>April 2006</creationDate>
<copyright>(C) 2005 - 2014 Open Source Matters. All rights reserved.</copyright>
<copyright>(C) 2005 - 2016 Open Source Matters. All rights reserved.</copyright>
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
<authorEmail>admin@joomla.org</authorEmail>
<authorUrl>www.joomla.org</authorUrl>
Expand Down
11 changes: 7 additions & 4 deletions app/administrator/components/com_config/controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @package Joomla.Administrator
* @subpackage com_config
*
* @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
* @copyright Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

Expand All @@ -12,9 +12,8 @@
/**
* Config Component Controller
*
* @package Joomla.Administrator
* @subpackage com_config
* @since 1.5
* @deprecated 4.0
*/
class ConfigController extends JControllerLegacy
{
Expand All @@ -41,7 +40,11 @@ public function display($cachable = false, $urlparams = array())
// Set the default view name and format from the Request.
$vName = $this->input->get('view', 'application');

JLog::add('ConfigController is deprecated. Use ConfigControllerApplicationDisplay or ConfigControllerComponentDisplay instead.', JLog::WARNING, 'deprecated');
JLog::add(
'ConfigController is deprecated. Use ConfigControllerApplicationDisplay or ConfigControllerComponentDisplay instead.',
JLog::WARNING,
'deprecated'
);

if (ucfirst($vName) == 'Application')
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @package Joomla.Administrator
* @subpackage com_config
*
* @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
* @copyright Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

Expand All @@ -12,9 +12,7 @@
/**
* Cancel Controller for global configuration
*
* @package Joomla.Administrator
* @subpackage com_config
* @since 3.2
* @since 3.2
*/
class ConfigControllerApplicationCancel extends ConfigControllerCanceladmin
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php
/**
* @package Joomla.Administrator
* @subpackage Joomla.Config
* @subpackage com_config
*
* @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
* @copyright Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

Expand All @@ -12,10 +12,8 @@
/**
* Base Display Controller
*
* @package Joomla.Administrator
* @subpackage com_config
* @since 3.2
* @note Needed for front end view
* @since 3.2
* @note Needed for front end view
*/
class ConfigControllerApplicationDisplay extends ConfigControllerDisplay
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,15 @@
* @package Joomla.Administrator
* @subpackage com_config
*
* @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
* @copyright Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;

/**
* Save Controller for global configuration
*
* @package Joomla.Administrator
* @subpackage com_config
* @since 3.2
* @since 3.2
*/
class ConfigControllerApplicationSave extends JControllerBase
{
Expand All @@ -37,14 +35,14 @@ public function execute()
// Check for request forgeries.
if (!JSession::checkToken())
{
$this->app->enqueueMessage(JText::_('JINVALID_TOKEN'));
$this->app->enqueueMessage(JText::_('JINVALID_TOKEN'), 'error');
$this->app->redirect('index.php');
}

// Check if the user is authorized to do this.
if (!JFactory::getUser()->authorise('core.admin'))
{
$this->app->enqueueMessage(JText::_('JERROR_ALERTNOAUTHOR'));
$this->app->enqueueMessage(JText::_('JERROR_ALERTNOAUTHOR'), 'error');
$this->app->redirect('index.php');
}

Expand Down Expand Up @@ -88,7 +86,7 @@ public function execute()
}

// Attempt to save the configuration.
$data = $return;
$data = $return;
$return = $model->save($data);

// Check the return value.
Expand All @@ -106,7 +104,7 @@ public function execute()
}

// Set the success message.
$this->app->enqueueMessage(JText::_('COM_CONFIG_SAVE_SUCCESS'));
$this->app->enqueueMessage(JText::_('COM_CONFIG_SAVE_SUCCESS'), 'message');

// Set the redirect based on the task.
switch ($this->options[3])
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?php
/**
* @package Joomla.Administrator
* @subpackage com_config
*
* @copyright Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;

/**
* Send Test Mail Controller from global configuration
*
* @since 3.5
*/
class ConfigControllerApplicationSendtestmail extends JControllerBase
{
/**
* Method to send the test mail.
*
* @return string
*
* @since 3.5
*/
public function execute()
{
// Send json mime type.
$this->app->mimeType = 'application/json';
$this->app->setHeader('Content-Type', $this->app->mimeType . '; charset=' . $this->app->charSet);
$this->app->sendHeaders();

// Check if user token is valid.
if (!JSession::checkToken('get'))
{
$this->app->enqueueMessage(JText::_('JINVALID_TOKEN'), 'error');
echo new JResponseJson;
$this->app->close();
}

// Check if the user is authorized to do this.
if (!JFactory::getUser()->authorise('core.admin'))
{
$this->app->enqueueMessage(JText::_('JERROR_ALERTNOAUTHOR'), 'error');
echo new JResponseJson;
$this->app->close();
}

$model = new ConfigModelApplication;
echo new JResponseJson($model->sendTestMail());
$this->app->close();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?php
/**
* @package Joomla.Administrator
* @subpackage com_config
*
* @copyright Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;

/**
* Controller for global configuration, Store Permissions in Database
*
* @since 3.5
*/
class ConfigControllerApplicationStore extends JControllerBase
{
/**
* Method to GET permission value and give it to the model for storing in the database.
*
* @return boolean true on success, false when failed
*
* @since 3.5
*/
public function execute()
{
// Send json mime type.
$this->app->mimeType = 'application/json';
$this->app->setHeader('Content-Type', $this->app->mimeType . '; charset=' . $this->app->charSet);
$this->app->sendHeaders();

// Check if user token is valid.
if (!JSession::checkToken('get'))
{
$this->app->enqueueMessage(JText::_('JINVALID_TOKEN'), 'error');
echo new JResponseJson;
$this->app->close();
}

$model = new ConfigModelApplication;
echo new JResponseJson($model->storePermissions());
$this->app->close();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @package Joomla.Site
* @subpackage com_config
*
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
* @copyright Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @package Joomla.Site
* @subpackage com_config
*
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
* @copyright Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @package Joomla.Administrator
* @subpackage com_config
*
* @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
* @copyright Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

Expand All @@ -12,9 +12,7 @@
/**
* Cancel Controller for global configuration components
*
* @package Joomla.Administrator
* @subpackage com_config
* @since 3.2
* @since 3.2
*/
class ConfigControllerComponentCancel extends ConfigControllerCanceladmin
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php
/**
* @package Joomla.Administrator
* @subpackage Joomla.Config
* @subpackage com_config
*
* @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
* @copyright Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

Expand All @@ -12,10 +12,8 @@
/**
* Base Display Controller
*
* @package Joomla.Administrator
* @subpackage com_config
* @since 3.2
* @note Needed for front end view
* @since 3.2
* @note Needed for front end view
*/
class ConfigControllerComponentDisplay extends ConfigControllerDisplay
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @package Joomla.Administrator
* @subpackage com_config
*
* @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
* @copyright Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

Expand All @@ -12,9 +12,7 @@
/**
* Save Controller for global configuration
*
* @package Joomla.Administrator
* @subpackage com_config
* @since 3.2
* @since 3.2
*/
class ConfigControllerComponentSave extends JControllerBase
{
Expand All @@ -38,7 +36,7 @@ public function execute()
// Check for request forgeries.
if (!JSession::checkToken())
{
$this->app->enqueueMessage(JText::_('JINVALID_TOKEN'));
$this->app->enqueueMessage(JText::_('JINVALID_TOKEN'), 'error');
$this->app->redirect('index.php');
}

Expand All @@ -50,14 +48,21 @@ public function execute()
$data = $this->input->get('jform', array(), 'array');
$id = $this->input->getInt('id');
$option = $this->input->get('component');
$user = JFactory::getUser();

// Check if the user is authorized to do this.
if (!JFactory::getUser()->authorise('core.admin', $option))
// Check if the user is authorised to do this.
if (!$user->authorise('core.admin', $option) && !$user->authorise('core.options', $option))
{
$this->app->enqueueMessage(JText::_('JERROR_ALERTNOAUTHOR'));
$this->app->enqueueMessage(JText::_('JERROR_ALERTNOAUTHOR'), 'error');
$this->app->redirect('index.php');
}

// Remove the permissions rules data if user isn't allowed to edit them.
if (!$user->authorise('core.admin', $option) && isset($data['params']) && isset($data['params']['rules']))
{
unset($data['params']['rules']);
}

$returnUri = $this->input->post->get('return', null, 'base64');

$redirect = '';
Expand Down Expand Up @@ -109,7 +114,7 @@ public function execute()
switch ($this->options[3])
{
case 'apply':
$this->app->enqueueMessage(JText::_('COM_CONFIG_SAVE_SUCCESS'));
$this->app->enqueueMessage(JText::_('COM_CONFIG_SAVE_SUCCESS'), 'message');
$this->app->redirect(JRoute::_('index.php?option=com_config&view=component&component=' . $option . $redirect, false));

break;
Expand All @@ -123,6 +128,12 @@ public function execute()
$redirect = base64_decode($returnUri);
}

// Don't redirect to an external URL.
if (!JUri::isInternal($redirect))
{
$redirect = JUri::base();
}

$this->app->redirect(JRoute::_($redirect, false));

break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @package Joomla.Site
* @subpackage com_config
*
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
* @copyright Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

Expand Down
Loading