29
0
mirror of https://github.com/joomla/joomla-cms.git synced 2024-07-01 17:43:42 +00:00

Merge commit 'cd8d650' into 4.0-dev

This commit is contained in:
wilsonge 2018-07-13 16:04:42 +01:00
commit c356b679ad
No known key found for this signature in database
GPG Key ID: EF81319318FC9D04
11 changed files with 25 additions and 27 deletions

View File

@ -244,13 +244,11 @@ class SysInfoModel extends BaseDatabaseModel
return $this->php_settings;
}
$outputBuffering = ini_get('output_buffering');
$this->php_settings = array(
'display_errors' => ini_get('display_errors') == '1',
'short_open_tag' => ini_get('short_open_tag') == '1',
'file_uploads' => ini_get('file_uploads') == '1',
'output_buffering' => ($outputBuffering === 'On') ? true : is_numeric($outputBuffering),
'output_buffering' => (int) ini_get('output_buffering') !== 0,
'open_basedir' => ini_get('open_basedir'),
'session.save_path' => ini_get('session.save_path'),
'session.auto_start' => ini_get('session.auto_start'),

View File

@ -195,7 +195,7 @@ class ArticleModel extends AdminModel
*
* @return boolean True on success.
*
* @since __DEPLOY_VERSION__
* @since 3.8.6
*/
protected function batchMove($value, $pks, $contexts)
{

View File

@ -121,10 +121,10 @@ class NotesModel extends ListModel
$query->where('(a.state IN (0, 1))');
}
// Filter by a single or group of categories.
$categoryId = $this->getState('filter.category_id');
// Filter by a single category.
$categoryId = (int) $this->getState('filter.category_id');
if ($categoryId && is_scalar($categoryId))
if ($categoryId)
{
$query->where('a.catid = ' . $categoryId);
}

View File

@ -2,7 +2,7 @@
/**
* @package Joomla.Cli
*
* @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
* @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
@ -36,7 +36,7 @@ require_once JPATH_LIBRARIES . '/cms.php';
/**
* Cron job to trash expired session metadata.
*
* @since __DEPLOY_VERSION__
* @since 3.8.6
*/
class SessionMetadataGc extends JApplicationCli
{
@ -45,7 +45,7 @@ class SessionMetadataGc extends JApplicationCli
*
* @return void
*
* @since __DEPLOY_VERSION__
* @since 3.8.6
*/
public function doExecute()
{

View File

@ -84,7 +84,7 @@ abstract class CMSApplication extends WebApplication implements ContainerAwareIn
* The session metadata manager
*
* @var MetadataManager
* @since __DEPLOY_VERSION__
* @since 3.8.6
*/
protected $metadataManager = null;

View File

@ -28,7 +28,7 @@ abstract class AdminModel extends FormModel
* The type alias for this content type (for example, 'com_content.article').
*
* @var string
* @since __DEPLOY_VERSION__
* @since 3.8.6
*/
public $typeAlias;

View File

@ -330,7 +330,7 @@ class MysqlChangeItem extends ChangeItem
*
* @return string The query clause for NULL check in the check query
*
* @since __DEPLOY_VERSION__
* @since 3.8.6
*/
private function checkNull($changesArray)
{
@ -361,7 +361,7 @@ class MysqlChangeItem extends ChangeItem
*
* @return string The query clause for DEFAULT check in the check query
*
* @since __DEPLOY_VERSION__
* @since 3.8.6
*/
private function checkDefault($changesArray, $type)
{

View File

@ -18,7 +18,7 @@ use Joomla\CMS\User\User;
/**
* Manager for optional session metadata.
*
* @since __DEPLOY_VERSION__
* @since 3.8.6
* @internal
*/
final class MetadataManager
@ -27,7 +27,7 @@ final class MetadataManager
* Application object.
*
* @var AbstractApplication
* @since __DEPLOY_VERSION__
* @since 3.8.6
*/
private $app;
@ -35,7 +35,7 @@ final class MetadataManager
* Database driver.
*
* @var \JDatabaseDriver
* @since __DEPLOY_VERSION__
* @since 3.8.6
*/
private $db;
@ -45,7 +45,7 @@ final class MetadataManager
* @param AbstractApplication $app Application object.
* @param \JDatabaseDriver $db Database driver.
*
* @since __DEPLOY_VERSION__
* @since 3.8.6
*/
public function __construct(AbstractApplication $app, \JDatabaseDriver $db)
{
@ -61,7 +61,7 @@ final class MetadataManager
*
* @return void
*
* @since __DEPLOY_VERSION__
* @since 3.8.6
* @throws \RuntimeException
*/
public function createRecordIfNonExisting(Session $session, User $user)
@ -136,7 +136,7 @@ final class MetadataManager
*
* @return void
*
* @since __DEPLOY_VERSION__
* @since 3.8.6
*/
public function deletePriorTo($time)
{

View File

@ -111,7 +111,7 @@ class PlgSystemRemember extends CMSPlugin
*
* @return boolean
*
* @since __DEPLOY_VERSION__
* @since 3.8.6
*/
public function onUserBeforeSave($user, $isnew, $data)
{
@ -122,7 +122,7 @@ class PlgSystemRemember extends CMSPlugin
}
// Irrelevant, because password was not changed by user
if ($data['password_clear'] == '')
if (empty($data['password_clear']))
{
return true;
}

View File

@ -17,7 +17,7 @@ use Joomla\CMS\Session\MetadataManager;
/**
* Garbage collection handler for session related data
*
* @since __DEPLOY_VERSION__
* @since 3.8.6
*/
class PlgSystemSessionGc extends CMSPlugin
{
@ -25,7 +25,7 @@ class PlgSystemSessionGc extends CMSPlugin
* Application object
*
* @var CMSApplication
* @since __DEPLOY_VERSION__
* @since 3.8.6
*/
protected $app;
@ -33,7 +33,7 @@ class PlgSystemSessionGc extends CMSPlugin
* Database driver
*
* @var JDatabaseDriver
* @since __DEPLOY_VERSION__
* @since 3.8.6
*/
protected $db;
@ -42,7 +42,7 @@ class PlgSystemSessionGc extends CMSPlugin
*
* @return void
*
* @since __DEPLOY_VERSION__
* @since 3.8.6
*/
public function onAfterRespond()
{

View File

@ -7,7 +7,7 @@
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
<authorEmail>admin@joomla.org</authorEmail>
<authorUrl>www.joomla.org</authorUrl>
<version>__DEPLOY_VERSION__</version>
<version>3.8.6</version>
<description>PLG_SYSTEM_SESSIONGC_XML_DESCRIPTION</description>
<files>
<filename plugin="sessiongc">sessiongc.php</filename>