Skip to content

Commit

Permalink
Merge branch 'master' into field-subform-sync
Browse files Browse the repository at this point in the history
  • Loading branch information
Fedik committed Jan 2, 2016
2 parents c8638a0 + 30e724f commit d2b4d02
Show file tree
Hide file tree
Showing 1,246 changed files with 41,580 additions and 17,228 deletions.
26 changes: 20 additions & 6 deletions .gitignore
Expand Up @@ -75,6 +75,7 @@ Desktop.ini
/libraries/vendor/joomla/session/Joomla/Session/_Tests
/libraries/vendor/joomla/session/Joomla/Session/build
/libraries/vendor/joomla/session/Joomla/Session/Tests
/libraries/vendor/joomla/session/Joomla/Session/CONTRIBUTING.md
/libraries/vendor/joomla/session/Joomla/Session/composer.json
/libraries/vendor/joomla/session/Joomla/Session/phpunit.xml.dist
/libraries/vendor/joomla/session/Joomla/Session/README.md
Expand All @@ -86,6 +87,14 @@ Desktop.ini
/libraries/vendor/leafo/lessphp/Makefile
/libraries/vendor/leafo/lessphp/package.sh
/libraries/vendor/leafo/lessphp/README.md
/libraries/vendor/paragonie/random_compat/.gitignore
/libraries/vendor/paragonie/random_compat/.scrutinizer.yml
/libraries/vendor/paragonie/random_compat/.travis.yml
/libraries/vendor/paragonie/random_compat/ERRATA.md
/libraries/vendor/paragonie/random_compat/README.md
/libraries/vendor/paragonie/random_compat/SECURITY.md
/libraries/vendor/paragonie/random_compat/composer.json
/libraries/vendor/paragonie/random_compat/tests
/libraries/vendor/phpmailer/phpmailer/docs
/libraries/vendor/phpmailer/phpmailer/examples
/libraries/vendor/phpmailer/phpmailer/language
Expand All @@ -101,9 +110,14 @@ Desktop.ini
/libraries/vendor/psr/log/.gitignore
/libraries/vendor/psr/log/composer.json
/libraries/vendor/psr/log/README.md
/libraries/vendor/symfony/yaml/Symfony/Component/Yaml/Tests
/libraries/vendor/symfony/yaml/Symfony/Component/Yaml/.gitignore
/libraries/vendor/symfony/yaml/Symfony/Component/Yaml/CHANGELOG.md
/libraries/vendor/symfony/yaml/Symfony/Component/Yaml/composer.json
/libraries/vendor/symfony/yaml/Symfony/Component/Yaml/phpunit.xml.dist
/libraries/vendor/symfony/yaml/Symfony/Component/Yaml/README.md
/libraries/vendor/symfony/polyfill-php56/composer.json
/libraries/vendor/symfony/polyfill-php56/README.md
/libraries/vendor/symfony/polyfill-util/composer.json
/libraries/vendor/symfony/polyfill-util/README.md
/libraries/vendor/symfony/polyfill-util/TestListener.php
/libraries/vendor/symfony/yaml/Tests
/libraries/vendor/symfony/yaml/.gitignore
/libraries/vendor/symfony/yaml/CHANGELOG.md
/libraries/vendor/symfony/yaml/composer.json
/libraries/vendor/symfony/yaml/phpunit.xml.dist
/libraries/vendor/symfony/yaml/README.md
34 changes: 21 additions & 13 deletions .travis.yml
Expand Up @@ -3,16 +3,24 @@ sudo: false

language: php

php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
env:
global:
- RUN_PHPCS="no"
- INSTALL_MEMCACHED="yes"
- INSTALL_REDIS="yes"

matrix:
allow_failures:
include:
- php: 5.3
env: INSTALL_APC="yes"
- php: 5.4
env: INSTALL_APC="yes"
- php: 5.5
env: INSTALL_APCU="yes"
- php: 5.6
env: RUN_PHPCS="yes" INSTALL_APCU="yes"
- php: 7.0
env: INSTALL_APCU_BC_BETA="no" INSTALL_MEMCACHED="no" INSTALL_REDIS="no" # Disabled apcu_bc install until https://github.com/travis-ci/travis-ci/issues/5207 is resolved

services:
- memcached
Expand All @@ -29,15 +37,15 @@ before_script:
# Set up Apache
# - ./build/travis/php-apache.sh
# Enable additional PHP extensions
- sh -c "if [ '$TRAVIS_PHP_VERSION' != '7.0' ]; then phpenv config-add build/travis/phpenv/memcached.ini; fi"
- sh -c "if [ '$TRAVIS_PHP_VERSION' == '5.3' ] || [ '$TRAVIS_PHP_VERSION' == '5.4' ]; then phpenv config-add build/travis/phpenv/apc-$TRAVIS_PHP_VERSION.ini; fi"
- sh -c "if [ '$TRAVIS_PHP_VERSION' != '7.0' ]; then phpenv config-add build/travis/phpenv/redis.ini; fi"
# PHP 5.5+ needs APCu
- if [ '$TRAVIS_PHP_VERSION' == "5.5" ] || [ '$TRAVIS_PHP_VERSION' == "5.6" ]; then printf "\n" | echo -e "extension = apcu.so\napc.enabled=1\napc.enable_cli=1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi
- if [ "$INSTALL_MEMCACHED" == "yes" ]; then phpenv config-add build/travis/phpenv/memcached.ini; fi
- if [ "$INSTALL_APC" == "yes" ]; then phpenv config-add build/travis/phpenv/apc-$TRAVIS_PHP_VERSION.ini; fi
- if [ "$INSTALL_APCU" == "yes" ]; then printf "\n" | pecl install apcu-4.0.10; 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

script:
- libraries/vendor/bin/phpunit --configuration travisci-phpunit.xml
- sh -c "if [ '$TRAVIS_PHP_VERSION' != '7.0' ]; then libraries/vendor/bin/phpcs --report=full --extensions=php -p --standard=build/phpcs/Joomla .; fi"
- if [ "$RUN_PHPCS" == "yes" ]; then libraries/vendor/bin/phpcs --report=full --extensions=php -p --standard=build/phpcs/Joomla .; fi

branches:
except:
Expand Down
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Expand Up @@ -2,14 +2,14 @@ Contributing to the Joomla! CMS™
===============
You are welcome to submit a contribution for review and possible inclusion in the Joomla! CMS but, before it will be accepted, we ask that you follow these simple steps:

1) Open an issue on our [Issue Tracker](http://issues.joomla.org/) or here on GitHub. If you can, please provide a fix and create a pull request (PR) instead; this will automatically create an issue for you.
1) Open an issue on our [Issue Tracker](https://issues.joomla.org/) or here on GitHub. If you can, please provide a fix and create a pull request (PR) instead; this will automatically create an issue for you.

2) Follow the [Joomla! Coding Standards](http://joomla.github.io/coding-standards).
2) Follow the [Joomla! Coding Standards](https://joomla.github.io/coding-standards).

3) When filing an issue or opening a PR, please include a clear title and description. The title should be a short summary of an issue and, if possible, should include a reference to an open issue. For example, `Invalid Query in com_admin (Ref #1234)` would be sufficient. All issues and PRs should include a description with as much detail as possible.
If it is a PR, include what the issue is, what the PR is addressing, testing instructions and environmental information (PHP version, database driver and version, and other data you can retrieve from your site's system information view) in case the issue is specific to certain environments. If additional information is needed, please be prepared to provide it as our community members review your submission.

4) Report security issues to the Joomla! Security Strike Team (JSST) at security@joomla.org or use the [JSST contact form](http://developer.joomla.org/contact-security-team.html). Please do not use the public tracker for security issues.
4) Report security issues to the Joomla! Security Strike Team (JSST) at security@joomla.org or use the [JSST contact form](https://developer.joomla.org/contact-security-team.html). Please do not use the public tracker for security issues.

Please be patient as not all items will be tested immediately (remember, all bug testing for the Joomla! CMS is done by volunteers) and be receptive to feedback about your code.

Expand Down
20 changes: 10 additions & 10 deletions README.md
Expand Up @@ -3,26 +3,26 @@ Joomla! CMS™ [![Analytics](https://ga-beacon.appspot.com/UA-544070-3/joomla-cm

Build Status
---------------------
Travis-CI: [![Build Status](https://travis-ci.org/joomla/joomla-cms.png)](https://travis-ci.org/joomla/joomla-cms)
Travis-CI: [![Build Status](https://travis-ci.org/joomla/joomla-cms.svg?branch=staging)](https://travis-ci.org/joomla/joomla-cms)
Jenkins: [![Build Status](http://build.joomla.org/job/cms/badge/icon)](http://build.joomla.org/job/cms/)

What is this?
---------------------
* This is a Joomla! 3.x installation/upgrade package.
* Joomla's [Official website](http://www.joomla.org).
* Joomla! 3.4 [version history](https://docs.joomla.org/Joomla_3.4_version_history).
* Joomla's [Official website](https://www.joomla.org).
* Joomla! 3.5 [version history](https://docs.joomla.org/Joomla_3.5_version_history).
* Detailed changes are in the [changelog](https://github.com/joomla/joomla-cms/commits/master).

What is Joomla?
---------------------
* Joomla is a **Content Management System** (CMS) which enables you to build websites and powerful online applications.
* It is a simple and powerful web server application which requires a server with PHP and either MySQL, PostgreSQL or SQL Server to run. You can find more [details here](http://www.joomla.org/about-joomla.html).
* It is a simple and powerful web server application which requires a server with PHP and either MySQL, PostgreSQL or SQL Server to run. You can find more [details here](https://www.joomla.org/about-joomla.html).
* Joomla is **free and OpenSource software** distributed under the GNU General Public License version 2 or later.

Is Joomla! for you?
---------------------
* Joomla is [the right solution for most content web projects](https://docs.joomla.org/Joomla_Is_it_for_me%3F).
* View Joomla's core [features here](http://www.joomla.org/core-features.html).
* View Joomla's core [features here](https://www.joomla.org/core-features.html).
* Try it out for yourself in our [online demo](https://demo.joomla.org).

How to find a Joomla! translation?
Expand All @@ -32,7 +32,7 @@ How to find a Joomla! translation?

Learn Joomla!
---------------------
* Read ['Getting Started with Joomla!'](https://docs.joomla.org/Getting_Started_with_Joomla!) to learn the basics.
* Read ['Getting Started with Joomla!'](https://docs.joomla.org/J3.x:Getting_Started_with_Joomla!) to learn the basics.
* Before installing, read the ['Beginners' Guide'](https://docs.joomla.org/Beginners).

What are the benefits of Joomla?
Expand All @@ -49,27 +49,27 @@ Is it easy to change the layout display?

Ready to install Joomla?
---------------------
* Check the [minimum requirements](http://www.joomla.org/technical-requirements.html).
* Check the [minimum requirements](https://www.joomla.org/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.

Updates are free!
---------------------
* Always use the [latest version](http://www.joomla.org/download.html).
* Always use the [latest version](https://www.joomla.org/download.html).

Where can you get support and help?
---------------------
* [The Joomla! Documentation](https://docs.joomla.org/Main_Page);
* [Frequently Asked Questions](https://docs.joomla.org/Category:FAQ) (FAQ);
* Find the [information you need](https://docs.joomla.org/Start_here);
* Find [help and other users](http://www.joomla.org/about-joomla/create-and-share.html);
* Find [help and other users](https://www.joomla.org/about-joomla/create-and-share.html);
* Post questions at [our forums](http://forum.joomla.org);
* [Joomla Resources Directory](http://resources.joomla.org/) (JRD).

Do you already have a Joomla site that isn't built with Joomla 3.x?
---------------------
* What's [new in Joomla! 3.x](http://www.joomla.org/3)?
* What's [new in Joomla! 3.x](https://www.joomla.org/3)?
* What are the [main differences between 2.5 and 3.x](https://docs.joomla.org/What_are_the_major_differences_between_Joomla!_2.5_and_3.x%3F)?
* How to [migrate from 2.5.x to 3.x](https://docs.joomla.org/Joomla_2.5_to_3.x_Step_by_Step_Migration).
* How to [migrate from 1.5.x to 3.x](https://docs.joomla.org/Joomla_1.5_to_3.x_Step_by_Step_Migration).
Expand Down
18 changes: 9 additions & 9 deletions README.txt
@@ -1,26 +1,26 @@
1- What is this?
* This is a Joomla! installation/upgrade package to version 3.x
* Joomla! Official site: http://www.joomla.org
* Joomla! 3.4 version history - https://docs.joomla.org/Joomla_3.4_version_history
* Joomla! Official site: https://www.joomla.org
* Joomla! 3.5 version history - https://docs.joomla.org/Joomla_3.5_version_history
* Detailed changes in the Changelog: https://github.com/joomla/joomla-cms/commits/master

2- What is Joomla?
* Joomla is a Content Management System (CMS) which enables you to build Web sites and powerful online applications.
* It's a free and OpenSource software, distributed under the GNU General Public License version 2 or later
* This is a simple and powerful web server application and it requires a server with PHP and either MySQL, PostgreSQL, or SQL Server to run it.
More details here: http://www.joomla.org/about-joomla.html
More details here: https://www.joomla.org/about-joomla.html

3- Is Joomla for you?
* Joomla is the right solution for any content web project: https://docs.joomla.org/Joomla_Is_it_for_me%3F
* See Features - http://www.joomla.org/core-features.html
* See Features - https://www.joomla.org/core-features.html
* Try out our online demo: https://demo.joomla.org/

4- How to find a Joomla! translation?
* Repository of accredited language packs: http://community.joomla.org/translations.html
* You can also add languages directly to your website via your Joomla! administration panel.

5- Learn Joomla!
* Read Getting Started with Joomla to find out the basics: https://docs.joomla.org/Getting_Started_with_Joomla!
* Read Getting Started with Joomla to find out the basics: https://docs.joomla.org/J3.x:Getting_Started_with_Joomla!
* Before installing, read the beginners guide: https://docs.joomla.org/Beginners

6- What are the limits of Joomla?
Expand All @@ -33,25 +33,25 @@
* There are lots of ready made templates that you can download.

8- Ready to install Joomla?
* See minimum requirements here: http://www.joomla.org/technical-requirements.html
* See minimum requirements here: https://www.joomla.org/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.
See the tutorial: https://docs.joomla.org/Tutorial:Joomla_Local_install

9- Updates are free!
* Always use the latest version: http://www.joomla.org/download.html
* Always use the latest version: https://www.joomla.org/download.html

10- Where can you get support and help?
* The Joomla! Documentation: https://docs.joomla.org/Main_Page
* FAQ Frequently Asked Questions: https://docs.joomla.org/Category:FAQ
* Find the information you need: https://docs.joomla.org/Start_here
* Find help and other users: http://www.joomla.org/about-joomla/create-and-share.html
* Find help and other users: https://www.joomla.org/about-joomla/create-and-share.html
* Post questions at our forums: http://forum.joomla.org
* Joomla Resources Directory (JRD): http://resources.joomla.org/

11- Do you already have a Joomla site that's not built with Joomla 3.x ?
* What's new in Joomla 3.x: http://www.joomla.org/3
* What's new in Joomla 3.x: https://www.joomla.org/3
* What are the main differences from 2.5 to 3? Table of contents: https://docs.joomla.org/Differences_from_Joomla_2.5_to_Joomla_3.0
* How to migrate from 2.5.x to 3.x? Tutorial: https://docs.joomla.org/Joomla_2.5_to_3.x_Step_by_Step_Migration
* How to migrate from 1.5.x to 3.x? Tutorial: https://docs.joomla.org/Joomla_1.5_to_3.x_Step_by_Step_Migration
Expand Down
2 changes: 1 addition & 1 deletion administrator/components/com_admin/controllers/profile.php
Expand Up @@ -63,7 +63,7 @@ public function save($key = null, $urlVar = null)
*
* @param string $key The name of the primary key of the URL variable.
*
* @return Boolean True if access level checks pass, false otherwise.
* @return boolean True if access level checks pass, false otherwise.
*
* @since 1.6
*/
Expand Down
23 changes: 8 additions & 15 deletions administrator/components/com_admin/models/help.php
Expand Up @@ -20,7 +20,6 @@ class AdminModelHelp extends JModelLegacy
* The search string
*
* @var string
*
* @since 1.6
*/
protected $help_search = null;
Expand All @@ -29,16 +28,14 @@ class AdminModelHelp extends JModelLegacy
* The page to be viewed
*
* @var string
*
* @since 1.6
*/
protected $page = null;

/**
* The iso language tag
* The ISO language tag
*
* @var string
*
* @since 1.6
*/
protected $lang_tag = null;
Expand All @@ -47,7 +44,6 @@ class AdminModelHelp extends JModelLegacy
* Table of contents
*
* @var array
*
* @since 1.6
*/
protected $toc = null;
Expand All @@ -56,7 +52,6 @@ class AdminModelHelp extends JModelLegacy
* URL for the latest version check
*
* @var string
*
* @since 1.6
*/
protected $latest_version_check = null;
Expand All @@ -66,7 +61,7 @@ class AdminModelHelp extends JModelLegacy
*
* @return string Help search string
*
* @since 1.6
* @since 1.6
*/
public function &getHelpSearch()
{
Expand All @@ -83,14 +78,13 @@ public function &getHelpSearch()
*
* @return string The page
*
* @since 1.6
* @since 1.6
*/
public function &getPage()
{
if (is_null($this->page))
{
$page = JFactory::getApplication()->input->get('page', 'JHELP_START_HERE');
$this->page = JHelp::createUrl($page);
$this->page = JHelp::createUrl(JFactory::getApplication()->input->get('page', 'JHELP_START_HERE'));
}

return $this->page;
Expand All @@ -107,12 +101,11 @@ public function getLangTag()
{
if (is_null($this->lang_tag))
{
$lang = JFactory::getLanguage();
$this->lang_tag = $lang->getTag();
$this->lang_tag = JFactory::getLanguage()->getTag();

if (!is_dir(JPATH_BASE . '/help/' . $this->lang_tag))
{
// Use english as fallback
// Use English as fallback
$this->lang_tag = 'en-GB';
}
}
Expand All @@ -121,7 +114,7 @@ public function getLangTag()
}

/**
* Method to get the toc
* Method to get the table of contents
*
* @return array Table of contents
*/
Expand All @@ -133,7 +126,7 @@ public function &getToc()
}

// Get vars
$lang_tag = $this->getLangTag();
$lang_tag = $this->getLangTag();
$help_search = $this->getHelpSearch();

// New style - Check for a TOC JSON file
Expand Down
10 changes: 7 additions & 3 deletions administrator/components/com_admin/models/profile.php
Expand Up @@ -57,6 +57,12 @@ public function getForm($data = array(), $loadData = true)
$form->setFieldAttribute('username', 'description', 'COM_ADMIN_USER_FIELD_NOCHANGE_USERNAME_DESC');
}

// When multilanguage is set, a user's default site language should also be a Content Language
if (JLanguageMultilang::isEnabled())
{
$form->setFieldAttribute('language', 'type', 'frontend_language', 'params');
}

// If the user needs to change their password, mark the password fields as required
if (JFactory::getUser()->requireReset)
{
Expand Down Expand Up @@ -103,9 +109,7 @@ protected function loadFormData()
*/
public function getItem($pk = null)
{
$user = JFactory::getUser();

return parent::getItem($user->get('id'));
return parent::getItem(JFactory::getUser()->id);
}

/**
Expand Down

0 comments on commit d2b4d02

Please sign in to comment.