Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/joomla/staging' into sendm…
Browse files Browse the repository at this point in the history
…ail-fallback
  • Loading branch information
andrepereiradasilva committed Jun 15, 2016
2 parents 30438f0 + 4ecd9ae commit 50dd303
Show file tree
Hide file tree
Showing 710 changed files with 15,902 additions and 10,693 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -7,8 +7,9 @@

# Local System Files (i.e. cache, logs, etc.) #
/administrator/cache
/administrator/logs
/cache
/logs
/installation/cache
/tmp
/configuration.php
/.htaccess
Expand Down
6 changes: 4 additions & 2 deletions .travis.yml
Expand Up @@ -36,7 +36,8 @@ matrix:
services:
- mysql
- postgresql
env: INSTALL_APCU_BC_BETA="no" INSTALL_MEMCACHE="no" INSTALL_MEMCACHED="no" INSTALL_REDIS="no" # Disabled items that currently do not work in travis-ci hhvm
- redis-server
env: INSTALL_APCU_BC_BETA="no" INSTALL_MEMCACHE="no" INSTALL_MEMCACHED="no" # Disabled items that currently do not work in travis-ci hhvm
allow_failures:
- php: hhvm

Expand Down Expand Up @@ -64,7 +65,8 @@ before_script:
- if [[ $INSTALL_APCU == "yes" && $TRAVIS_PHP_VERSION = 5.* ]]; then printf "\n" | pecl install apcu-4.0.10 && phpenv config-add build/travis/phpenv/apcu-$TRAVIS_PHP_VERSION.ini; fi
- if [[ $INSTALL_APCU == "yes" && $TRAVIS_PHP_VERSION = 7.* ]]; then printf "\n" | pecl install apcu-beta && phpenv config-add build/travis/phpenv/apcu-$TRAVIS_PHP_VERSION.ini; fi
- if [[ $INSTALL_APCU_BC_BETA == "yes" ]]; then printf "\n" | pecl install apcu_bc-beta; fi
- if [[ $INSTALL_REDIS == "yes" ]]; then phpenv config-add build/travis/phpenv/redis.ini; fi
- if [[ $INSTALL_REDIS == "yes" && $TRAVIS_PHP_VERSION != hhvm ]]; then phpenv config-add build/travis/phpenv/redis.ini; fi
- if [[ $INSTALL_REDIS == "yes" && $TRAVIS_PHP_VERSION = hhvm ]]; then cat build/travis/phpenv/redis.ini >> /etc/hhvm/php.ini; fi

script:
- libraries/vendor/bin/phpunit --configuration travisci-phpunit.xml
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -49,7 +49,7 @@ Is it easy to change the layout display?

Ready to install Joomla?
---------------------
* Check the [minimum requirements](https://www.joomla.org/technical-requirements.html).
* Check the [minimum requirements](https://www.joomla.org/about-joomla/technical-requirements.html).
* How do you [install Joomla](https://docs.joomla.org/Installing_Joomla!)?
* You could start your Joomla! experience by [building your site on a local test server](https://docs.joomla.org/Installing_Joomla_locally).
When ready, it can be moved to an on-line hosting account of your choice.
Expand Down
2 changes: 1 addition & 1 deletion README.txt
Expand Up @@ -33,7 +33,7 @@
* There are lots of ready made templates that you can download.

8- Ready to install Joomla?
* See minimum requirements here: https://www.joomla.org/technical-requirements.html
* See minimum requirements here: https://www.joomla.org/about-joomla/technical-requirements.html
* How do you install Joomla! ? - https://docs.joomla.org/Installing_Joomla!
* Start your Joomla experience building your site with a local test server.
When ready it can be moved to an on-line hosting account of your choice.
Expand Down
51 changes: 38 additions & 13 deletions administrator/components/com_admin/models/sysinfo.php
Expand Up @@ -102,7 +102,7 @@ class AdminModelSysInfo extends JModelLegacy
'session.save_path',
'upload_tmp_dir',
'User/Group',
'open_basedir'
'open_basedir',
),
'other' => array(
'db',
Expand All @@ -126,7 +126,7 @@ class AdminModelSysInfo extends JModelLegacy
'sitename',
'smtphost',
'tmp_path',
'open_basedir'
'open_basedir',
)
);

Expand Down Expand Up @@ -274,7 +274,7 @@ public function &getConfig()

$registry = new Registry(new JConfig);
$this->config = $registry->toArray();
$hidden = array('host', 'user', 'password', 'ftp_user', 'ftp_pass', 'smtpuser', 'smtppass');
$hidden = array('host', 'user', 'password', 'ftp_user', 'ftp_pass', 'smtpuser', 'smtppass',);

foreach ($hidden as $key)
{
Expand Down Expand Up @@ -312,7 +312,7 @@ public function &getInfo()
'sapi_name' => php_sapi_name(),
'version' => $version->getLongVersion(),
'platform' => $platform->getLongVersion(),
'useragent' => isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : ""
'useragent' => isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : "",
);

return $this->info;
Expand Down Expand Up @@ -525,7 +525,10 @@ public function getDirectory($public = false)
continue;
}

$this->addDirectory('administrator/language/' . $folder->getFilename(), JPATH_ADMINISTRATOR . '/language/' . $folder->getFilename());
$this->addDirectory(
'administrator/language/' . $folder->getFilename(),
JPATH_ADMINISTRATOR . '/language/' . $folder->getFilename()
);
}

// List all manifests folders
Expand All @@ -538,7 +541,10 @@ public function getDirectory($public = false)
continue;
}

$this->addDirectory('administrator/manifests/' . $folder->getFilename(), JPATH_ADMINISTRATOR . '/manifests/' . $folder->getFilename());
$this->addDirectory(
'administrator/manifests/' . $folder->getFilename(),
JPATH_ADMINISTRATOR . '/manifests/' . $folder->getFilename()
);
}

$this->addDirectory('administrator/modules', JPATH_ADMINISTRATOR . '/modules');
Expand All @@ -558,7 +564,10 @@ public function getDirectory($public = false)
continue;
}

$this->addDirectory('images/' . $folder->getFilename(), JPATH_SITE . '/' . $cparams->get('image_path') . '/' . $folder->getFilename());
$this->addDirectory(
'images/' . $folder->getFilename(),
JPATH_SITE . '/' . $cparams->get('image_path') . '/' . $folder->getFilename()
);
}

$this->addDirectory('language', JPATH_SITE . '/language');
Expand Down Expand Up @@ -611,13 +620,29 @@ public function getDirectory($public = false)

if ($public)
{
$this->addDirectory('log', $registry->get('log_path', JPATH_ROOT . '/log'), 'COM_ADMIN_LOG_DIRECTORY');
$this->addDirectory('tmp', $registry->get('tmp_path', JPATH_ROOT . '/tmp'), 'COM_ADMIN_TEMP_DIRECTORY');
$this->addDirectory(
'log',
$registry->get('log_path', JPATH_ADMINISTRATOR . '/logs'),
'COM_ADMIN_LOG_DIRECTORY'
);
$this->addDirectory(
'tmp',
$registry->get('tmp_path', JPATH_ROOT . '/tmp'),
'COM_ADMIN_TEMP_DIRECTORY'
);
}
else
{
$this->addDirectory($registry->get('log_path', JPATH_ROOT . '/log'), $registry->get('log_path', JPATH_ROOT . '/log'), 'COM_ADMIN_LOG_DIRECTORY');
$this->addDirectory($registry->get('tmp_path', JPATH_ROOT . '/tmp'), $registry->get('tmp_path', JPATH_ROOT . '/tmp'), 'COM_ADMIN_TEMP_DIRECTORY');
$this->addDirectory(
$registry->get('log_path', JPATH_ADMINISTRATOR . '/logs'),
$registry->get('log_path', JPATH_ADMINISTRATOR . '/logs'),
'COM_ADMIN_LOG_DIRECTORY'
);
$this->addDirectory(
$registry->get('tmp_path', JPATH_ROOT . '/tmp'),
$registry->get('tmp_path', JPATH_ROOT . '/tmp'),
'COM_ADMIN_TEMP_DIRECTORY'
);
}

return $this->directories;
Expand All @@ -636,7 +661,7 @@ public function getDirectory($public = false)
*/
private function addDirectory($name, $path, $message = '')
{
$this->directories[$name] = array('writable' => is_writable($path), 'message' => $message);
$this->directories[$name] = array('writable' => is_writable($path), 'message' => $message,);
}

/**
Expand Down Expand Up @@ -693,7 +718,7 @@ protected function parsePhpInfo($html)
// 3cols
if (preg_match($p2, $val, $matchs))
{
$r[$name][trim($matchs[1])] = array(trim($matchs[2]), trim($matchs[3]));
$r[$name][trim($matchs[1])] = array(trim($matchs[2]), trim($matchs[3]),);
}
// 2cols
elseif (preg_match($p3, $val, $matchs))
Expand Down
6 changes: 4 additions & 2 deletions administrator/components/com_admin/script.php
Expand Up @@ -1421,6 +1421,8 @@ public function deleteUnexistingFiles()
'/libraries/simplepie/idn/idna_convert.class.php',
'/libraries/simplepie/idn/npdata.ser',
'/administrator/manifests/libraries/simplepie.xml',
'/administrator/templates/isis/js/jquery.js',
'/administrator/templates/isis/js/bootstrap.min.js',
);

// TODO There is an issue while deleting folders using the ftp mode
Expand Down Expand Up @@ -1632,8 +1634,8 @@ public function flushSessions()
$session = JFactory::getSession();

/**
* Restarting the Session require a new login for the current user so lets check if we have a active session
* and only if not restart it.
* Restarting the Session require a new login for the current user so lets check if we have an active session
* and only restart it if not.
* For B/C reasons we need to use getState as isActive is not available in 2.5
*/
if ($session->getState() !== 'active')
Expand Down
@@ -1,3 +1,7 @@
-- Rename update site names
UPDATE `#__update_sites` SET `name` = 'Joomla! Core' WHERE `name` = 'Joomla Core' AND `type` = 'collection';
UPDATE `#__update_sites` SET `name` = 'Joomla! Extension Directory' WHERE `name` = 'Joomla Extension Directory' AND `type` = 'collection';

UPDATE `#__update_sites` SET `location` = 'https://update.joomla.org/core/list.xml' WHERE `name` = 'Joomla! Core' AND `type` = 'collection';
UPDATE `#__update_sites` SET `location` = 'https://update.joomla.org/jed/list.xml' WHERE `name` = 'Joomla! Extension Directory' AND `type` = 'collection';
UPDATE `#__update_sites` SET `location` = 'https://update.joomla.org/language/translationlist_3.xml' WHERE `name` = 'Accredited Joomla! Translations' AND `type` = 'collection';
Expand Down
@@ -1,6 +1,14 @@
-- Insert the missing en-GB package extension.
INSERT INTO `#__extensions` (`extension_id`, `name`, `type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`, `manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`, `checked_out_time`, `ordering`, `state`)
VALUES (801, 'English (United Kingdom)', 'package', 'pkg_en-GB', '', 0, 1, 1, 1, '', '', '', '', 0, '0000-00-00 00:00:00', 0, 0);
VALUES (802, 'English (United Kingdom)', 'package', 'pkg_en-GB', '', 0, 1, 1, 1, '', '', '', '', 0, '0000-00-00 00:00:00', 0, 0);

-- Change update site extension id to the new extension.
UPDATE `#__update_sites_extensions` SET `extension_id` = 801 WHERE `update_site_id` = 3 AND `extension_id` = 600;
UPDATE `#__update_sites_extensions`
SET `extension_id` = 802
WHERE `update_site_id` IN (
SELECT `update_site_id`
FROM `#__update_sites`
WHERE `name` = 'Accredited Joomla! Translations'
AND `type` = 'collection'
)
AND `extension_id` = 600;
@@ -0,0 +1 @@
UPDATE `#__extensions` SET `protected` = 1, `enabled` = 1 WHERE `name` = 'com_ajax';
@@ -0,0 +1,5 @@
--
-- Add ACL check for to #__languages
--

ALTER TABLE `#__languages` ADD COLUMN `asset_id` INT(11) NOT NULL AFTER `lang_id`;
@@ -1,3 +1,7 @@
-- Rename update site names
UPDATE "#__update_sites" SET "name" = 'Joomla! Core' WHERE "name" = 'Joomla Core' AND "type" = 'collection';
UPDATE "#__update_sites" SET "name" = 'Joomla! Extension Directory' WHERE "name" = 'Joomla Extension Directory' AND "type" = 'collection';

UPDATE "#__update_sites" SET "location" = 'https://update.joomla.org/core/list.xml' WHERE "name" = 'Joomla! Core' AND "type" = 'collection';
UPDATE "#__update_sites" SET "location" = 'https://update.joomla.org/jed/list.xml' WHERE "name" = 'Joomla! Extension Directory' AND "type" = 'collection';
UPDATE "#__update_sites" SET "location" = 'https://update.joomla.org/language/translationlist_3.xml' WHERE "name" = 'Accredited Joomla! Translations' AND "type" = 'collection';
Expand Down
@@ -1,4 +1,12 @@
INSERT INTO "#__extensions" ("extension_id", "name", "type", "element", "folder", "client_id", "enabled", "access", "protected", "manifest_cache", "params", "custom_data", "system_data", "checked_out", "checked_out_time", "ordering", "state") VALUES
(801, 'English (United Kingdom)', 'package', 'pkg_en-GB', '', 0, 1, 1, 1, '', '', '', '', 0, '1970-01-01 00:00:00', 0, 0);
(802, 'English (United Kingdom)', 'package', 'pkg_en-GB', '', 0, 1, 1, 1, '', '', '', '', 0, '1970-01-01 00:00:00', 0, 0);

UPDATE "#__update_sites_extensions" SET "extension_id" = 801 WHERE "update_site_id" = 3 AND "extension_id" = 600;
UPDATE "#__update_sites_extensions"
SET "extension_id" = 802
WHERE "update_site_id" IN (
SELECT "update_site_id"
FROM "#__update_sites"
WHERE "name" = 'Accredited Joomla! Translations'
AND "type" = 'collection'
)
AND "extension_id" = 600;
@@ -1,5 +1,6 @@
DELETE FROM "#__extensions" WHERE "type" = "library" AND "element" = "simplepie";
INSERT INTO `#__extensions` (`extension_id`, `name`, `type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`, `manifest_cache`, `params`, `custom_data`, `system_data`, `checked_out`, `checked_out_time`, `ordering`, `state`) VALUES
DELETE FROM "#__extensions" WHERE "type" = 'library' AND "element" = 'simplepie';

INSERT INTO "#__extensions" ("extension_id", "name", "type", "element", "folder", "client_id", "enabled", "access", "protected", "manifest_cache", "params", "custom_data", "system_data", "checked_out", "checked_out_time", "ordering", "state") VALUES
(455, 'plg_installer_packageinstaller', 'plugin', 'packageinstaller', 'installer', 0, 1, 1, 1, '', '', '', '', 0, '1970-01-01 00:00:00', 1, 0),
(456, 'plg_installer_folderinstaller', 'plugin', 'folderinstaller', 'installer', 0, 1, 1, 1, '', '', '', '', 0, '1970-01-01 00:00:00', 2, 0),
(457, 'plg_installer_urlinstaller', 'plugin', 'urlinstaller', 'installer', 0, 1, 1, 1, '', '', '', '', 0, '1970-01-01 00:00:00', 3, 0);
@@ -0,0 +1 @@
UPDATE "#__extensions" SET "protected" = 1, "enabled" = 1 WHERE "name" = 'com_ajax';
@@ -0,0 +1,5 @@
--
-- Add ACL check for to #__languages
--

ALTER TABLE "#__languages" ADD COLUMN "asset_id" bigint DEFAULT 0 NOT NULL;
@@ -1,3 +1,7 @@
-- Rename update site names
UPDATE [#__update_sites] SET [name] = 'Joomla! Core' WHERE [name] = 'Joomla Core' AND [type] = 'collection';
UPDATE [#__update_sites] SET [name] = 'Joomla! Extension Directory' WHERE [name] = 'Joomla Extension Directory' AND [type] = 'collection';

UPDATE [#__update_sites] SET [location] = 'https://update.joomla.org/core/list.xml' WHERE [name] = 'Joomla! Core' AND [type] = 'collection';
UPDATE [#__update_sites] SET [location] = 'https://update.joomla.org/jed/list.xml' WHERE [name] = 'Joomla! Extension Directory' AND [type] = 'collection';
UPDATE [#__update_sites] SET [location] = 'https://update.joomla.org/language/translationlist_3.xml' WHERE [name] = 'Accredited Joomla! Translations' AND [type] = 'collection';
Expand Down
@@ -1,8 +1,16 @@
SET IDENTITY_INSERT [#__extensions] ON;

INSERT [#__extensions] ([extension_id], [name], [type], [element], [folder], [client_id], [enabled], [access], [protected], [manifest_cache], [params], [custom_data], [system_data], [checked_out], [checked_out_time], [ordering], [state])
SELECT 801, 'English (United Kingdom)', 'package', 'pkg_en-GB', '', 0, 1, 1, 1, '', '', '', '', 0, '1900-01-01 00:00:00', 0, 0;
SELECT 802, 'English (United Kingdom)', 'package', 'pkg_en-GB', '', 0, 1, 1, 1, '', '', '', '', 0, '1900-01-01 00:00:00', 0, 0;

SET IDENTITY_INSERT [#__extensions] OFF;

UPDATE [#__update_sites_extensions] SET [extension_id] = 801 WHERE [update_site_id] = 3 AND [extension_id] = 600;
UPDATE [#__update_sites_extensions]
SET [extension_id] = 802
WHERE [update_site_id] IN (
SELECT [update_site_id]
FROM [#__update_sites]
WHERE [name] = 'Accredited Joomla! Translations'
AND [type] = 'collection'
)
AND [extension_id] = 600;
@@ -0,0 +1 @@
UPDATE [#__extensions] SET [protected] = 1, [enabled] = 1 WHERE [name] = 'com_ajax';
@@ -0,0 +1,5 @@
--
-- Add ACL check for to #__languages
--

ALTER TABLE [#__languages] ADD [asset_id] [bigint] NOT NULL DEFAULT 0;
Expand Up @@ -69,7 +69,7 @@ class AdminViewHelp extends JViewLegacy
*
* @param string $tpl The name of the template file to parse; automatically searches through the template paths.
*
* @return mixed A string if successful, otherwise a Error object.
* @return mixed A string if successful, otherwise an Error object.
*
* @since 1.6
*/
Expand Down
Expand Up @@ -34,7 +34,7 @@
<form action="<?php echo JRoute::_('index.php?option=com_admin&view=profile&layout=edit&id=' . $this->item->id); ?>" method="post" name="adminForm" id="profile-form" class="form-validate form-horizontal" enctype="multipart/form-data">
<?php echo JHtml::_('bootstrap.startTabSet', 'myTab', array('active' => 'account')); ?>

<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'account', JText::_('COM_ADMIN_USER_ACCOUNT_DETAILS', true)); ?>
<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'account', JText::_('COM_ADMIN_USER_ACCOUNT_DETAILS')); ?>
<?php foreach ($this->form->getFieldset('user_details') as $field) : ?>
<div class="control-group">
<div class="control-label"><?php echo $field->label; ?></div>
Expand Down
Expand Up @@ -45,7 +45,7 @@ class AdminViewProfile extends JViewLegacy
*
* @param string $tpl The name of the template file to parse; automatically searches through the template paths.
*
* @return mixed A string if successful, otherwise a Error object.
* @return mixed A string if successful, otherwise an Error object.
*
* @since 1.6
*/
Expand Down
Expand Up @@ -19,23 +19,23 @@
<div class="span12">
<?php echo JHtml::_('bootstrap.startTabSet', 'myTab', array('active' => 'site')); ?>

<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'site', JText::_('COM_ADMIN_SYSTEM_INFORMATION', true)); ?>
<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'site', JText::_('COM_ADMIN_SYSTEM_INFORMATION')); ?>
<?php echo $this->loadTemplate('system'); ?>
<?php echo JHtml::_('bootstrap.endTab'); ?>

<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'phpsettings', JText::_('COM_ADMIN_PHP_SETTINGS', true)); ?>
<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'phpsettings', JText::_('COM_ADMIN_PHP_SETTINGS')); ?>
<?php echo $this->loadTemplate('phpsettings'); ?>
<?php echo JHtml::_('bootstrap.endTab'); ?>

<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'config', JText::_('COM_ADMIN_CONFIGURATION_FILE', true)); ?>
<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'config', JText::_('COM_ADMIN_CONFIGURATION_FILE')); ?>
<?php echo $this->loadTemplate('config'); ?>
<?php echo JHtml::_('bootstrap.endTab'); ?>

<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'directory', JText::_('COM_ADMIN_DIRECTORY_PERMISSIONS', true)); ?>
<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'directory', JText::_('COM_ADMIN_DIRECTORY_PERMISSIONS')); ?>
<?php echo $this->loadTemplate('directory'); ?>
<?php echo JHtml::_('bootstrap.endTab'); ?>

<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'phpinfo', JText::_('COM_ADMIN_PHP_INFORMATION', true)); ?>
<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'phpinfo', JText::_('COM_ADMIN_PHP_INFORMATION')); ?>
<?php echo $this->loadTemplate('phpinfo'); ?>
<?php echo JHtml::_('bootstrap.endTab'); ?>

Expand Down
Expand Up @@ -105,7 +105,7 @@
<strong><?php echo JText::_('COM_ADMIN_USER_AGENT'); ?></strong>
</td>
<td>
<?php echo htmlspecialchars($this->info['useragent']); ?>
<?php echo htmlspecialchars($this->info['useragent'], ENT_COMPAT, 'UTF-8'); ?>
</td>
</tr>
</tbody>
Expand Down
Expand Up @@ -61,7 +61,7 @@ class AdminViewSysinfo extends JViewLegacy
*
* @param string $tpl The name of the template file to parse; automatically searches through the template paths.
*
* @return mixed A string if successful, otherwise a Error object.
* @return mixed A string if successful, otherwise an Error object.
*
* @since 1.6
*/
Expand Down
Expand Up @@ -21,7 +21,7 @@ class AdminViewSysinfo extends JViewLegacy
*
* @param string $tpl The name of the template file to parse; automatically searches through the template paths.
*
* @return mixed A string if successful, otherwise a Error object.
* @return mixed A string if successful, otherwise an Error object.
*
* @since 3.5
*/
Expand Down
Expand Up @@ -21,7 +21,7 @@ class AdminViewSysinfo extends JViewLegacy
*
* @param string $tpl The name of the template file to parse; automatically searches through the template paths.
*
* @return mixed A string if successful, otherwise a Error object.
* @return mixed A string if successful, otherwise an Error object.
*
* @since 3.5
*/
Expand Down

0 comments on commit 50dd303

Please sign in to comment.