Skip to content

Commit

Permalink
Merge branch 'staging' of https://github.com/joomla/joomla-cms into 4…
Browse files Browse the repository at this point in the history
…692_com_redirect_adding_urls_larger_than_255

Conflicts:
	installation/sql/mysql/joomla.sql
	installation/sql/postgresql/joomla.sql
	installation/sql/sqlazure/joomla.sql
  • Loading branch information
Kixo committed Nov 28, 2014
2 parents 76200b2 + eb91897 commit 4615fa4
Show file tree
Hide file tree
Showing 2,027 changed files with 125,295 additions and 34,820 deletions.
59 changes: 58 additions & 1 deletion .gitignore
Expand Up @@ -37,4 +37,61 @@ Thumbs.db
Desktop.ini

# Never ignore #
!.gitignore
# Only apply this rule to the main repository's gitignore files
!/.gitignore
!/build/.gitignore
!/tests/unit/suites/libraries/joomla/archive/.gitignore
!/tests/unit/tmp/.gitignore

# Extra files installed by Composer not needed in the CMS environment
# This should only ignore files like unit testing or READMEs, production
# code must remain to ensure all libraries properly function
/libraries/vendor/ircmaxell/password-compat/test
/libraries/vendor/ircmaxell/password-compat/.travis.yml
/libraries/vendor/ircmaxell/password-compat/composer.json
/libraries/vendor/ircmaxell/password-compat/phpunit.xml.dist
/libraries/vendor/ircmaxell/password-compat/README.md
/libraries/vendor/ircmaxell/password-compat/version-test.php
/libraries/vendor/joomla/*/docs
/libraries/vendor/joomla/*/Tests
/libraries/vendor/joomla/*/vendor
/libraries/vendor/joomla/*/.travis.yml
/libraries/vendor/joomla/*/CONTRIBUTING.md
/libraries/vendor/joomla/*/composer.json
/libraries/vendor/joomla/*/phpunit.xml.dist
/libraries/vendor/joomla/*/README.md
/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/composer.json
/libraries/vendor/joomla/session/Joomla/Session/phpunit.xml.dist
/libraries/vendor/joomla/session/Joomla/Session/README.md
/libraries/vendor/leafo/lessphp/docs
/libraries/vendor/leafo/lessphp/tests
/libraries/vendor/leafo/lessphp/.gitignore
/libraries/vendor/leafo/lessphp/.travis.yml
/libraries/vendor/leafo/lessphp/composer.json
/libraries/vendor/leafo/lessphp/Makefile
/libraries/vendor/leafo/lessphp/package.sh
/libraries/vendor/leafo/lessphp/README.md
/libraries/vendor/phpmailer/phpmailer/docs
/libraries/vendor/phpmailer/phpmailer/examples
/libraries/vendor/phpmailer/phpmailer/language
/libraries/vendor/phpmailer/phpmailer/test
/libraries/vendor/phpmailer/phpmailer/.gitignore
/libraries/vendor/phpmailer/phpmailer/.scrutinizer.yml
/libraries/vendor/phpmailer/phpmailer/.travis.yml
/libraries/vendor/phpmailer/phpmailer/changelog.md
/libraries/vendor/phpmailer/phpmailer/composer.json
/libraries/vendor/phpmailer/phpmailer/README.md
/libraries/vendor/phpmailer/phpmailer/travis.phpunit.xml.dist
/libraries/vendor/psr/log/Psr/Log/Test
/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
15 changes: 14 additions & 1 deletion .travis.yml
Expand Up @@ -6,14 +6,27 @@ php:
- 5.5
- 5.6

services:
- memcached
- redis-server

before_script:
- composer self-update
# - composer self-update
# - composer update
- pyrus install -f pear/PHP_CodeSniffer-1.5.5
- pyrus install -f pear/Cache_Lite
- phpenv rehash
# Set up databases for testing
- mysql -e 'create database joomla_ut;'
- mysql joomla_ut < tests/unit/schema/mysql.sql
- psql -c 'create database joomla_ut;' -U postgres
- psql -d joomla_ut -a -f tests/unit/schema/postgresql.sql
# Set up Apache
# - ./build/travis/php-apache.sh
# Enable additional PHP extensions
- phpenv config-add build/travis/phpenv/memcached.ini
- phpenv config-add build/travis/phpenv/apc-$TRAVIS_PHP_VERSION.ini
- phpenv config-add build/travis/phpenv/redis.ini

script:
- phpunit --configuration travisci-phpunit.xml
Expand Down
17 changes: 10 additions & 7 deletions CONTRIBUTING.md
@@ -1,23 +1,26 @@
Contributing to the Joomla! CMS
Contributing to the Joomla! CMS
===============
All contributions are welcome to be submitted for review for inclusion in the Joomla! CMS, but before they will be accepted, we ask that you follow these simple steps:
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 provide a fix create a pull request instead, it will automatically create the issue for you.
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.

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

3) When filing an issue or opening a pull request, 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 pull requests should include a description with as much detail as possible, including what the issue is, (if a pull request) what the pull request is addressing as well as testing instructions, and environmental information (PHP version, database driver and version, and other data you would 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.
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.

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.

#### Branches
Pull Requests should usually be made for the `staging` branch as this contains the most recent version of the code.
PRs should usually be made to the `staging` branch as this contains the most recent version of the code.
There are other branches available which serve specific purposes.

| Branch | Purpose |
| ------ | ------- |
| staging | Current codebase. |
| master | Each commit made to staging gets tested if it passes unit tests and codestyle rules and then merged into master. This is done automatically. |
| master | Each commit made to staging gets tested if it passes unit tests and codestyle rules. It is then merged into master. This is done automatically. |
| 2.5.x | Branch for the Joomla 2.5.x series. Currently in maintenance mode with EOL end of 2014. No new features are accepted here. |
| 3.2.x | Branch for the Joomla 3.2.x series. Currently in security mode with EOL Oct 2014. Only security issues are fixed. |
| 3.4-dev | Branch for the next minor Joomla version. New backward compatible features go into this branch. Commits to staging will be applied to this branch as well. |
89 changes: 45 additions & 44 deletions README.md
@@ -1,4 +1,4 @@
Joomla! CMS [![Analytics](https://ga-beacon.appspot.com/UA-544070-3/joomla-cms/readme)](https://github.com/igrigorik/ga-beacon)
Joomla! CMS [![Analytics](https://ga-beacon.appspot.com/UA-544070-3/joomla-cms/readme)](https://github.com/igrigorik/ga-beacon)
====================

Build Status
Expand All @@ -8,84 +8,85 @@ Jenkins: [![Build Status](http://build.joomla.org/job/cms/badge/icon)](http://bu

What is this?
---------------------
* This is a Joomla! installation/upgrade package to version 3.x
* Joomla! [Official site](http://www.joomla.org)
* Joomla! 3.3 [version history](http://docs.joomla.org/Joomla_3.3_version_history)
* Detailed changes in the [Changelog](https://github.com/joomla/joomla-cms/commits/master)
* This is a Joomla! 3.x installation/upgrade package.
* Joomla's [Official website](http://www.joomla.org).
* Joomla! 3.3 [version history](http://docs.joomla.org/Joomla_3.3_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 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)
* 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).
* 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 any content web project](http://docs.joomla.org/Joomla_Is_it_for_me%3F)
* See [Features](http://www.joomla.org/core-features.html)
* Try out our [online demo](http://demo.joomla.org)
* Joomla is [the right solution for most content web projects](http://docs.joomla.org/Joomla_Is_it_for_me%3F).
* View Joomla's core [features here](http://www.joomla.org/core-features.html).
* Try it out for yourself in our [online demo](http://demo.joomla.org).

How to find a Joomla! translation?
---------------------
* Repository of accredited [language packs](http://community.joomla.org/translations.html)
* Directory of [non-accredited language packs](http://extensions.joomla.org/extensions/languages/translations-for-joomla) (see above for accredited)
* Repository of [accredited language packs](http://community.joomla.org/translations.html).
* Directory of [non-accredited language packs](http://extensions.joomla.org/extensions/languages/translations-for-joomla).
* You can also add languages directly to your website via your Joomla! administration panel.

Learn Joomla!
---------------------
* Read [Getting Started with Joomla](http://docs.joomla.org/Getting_Started_with_Joomla!) to find out the basics
* Before installing, read the [beginners guide](http://docs.joomla.org/Beginners)
* Read ['Getting Started with Joomla!'](http://docs.joomla.org/Getting_Started_with_Joomla!) to learn the basics.
* Before installing, read the ['Beginners' Guide'](http://docs.joomla.org/Beginners).

What are the limits of Joomla?
What are the benefits of Joomla?
---------------------
* Joomla sites can be extended in functionalities with Extensions that you can create (or download) to suite your needs.
* There are lots of ready made extensions that you can download and install.
* See the [Joomla! Extensions Directory (JED)](http://extensions.joomla.org)
* The functionality of a Joomla website can be extended by installing extensions that you can create (or download) to suit your needs.
* There are many ready-made extensions that you can download and install.
* Check out the [Joomla! Extensions Directory (JED)](http://extensions.joomla.org).

Is it easy to change the layout display?
---------------------
* The layout is controlled by templates that you can edit.
* There are lots of ready made templates that you can download.
* There are a lot of ready-made professional templates that you can download.
* Template management information is [available here](http://docs.joomla.org/Portal:Administrators#Template_Management).

Ready to install Joomla?
---------------------
* See [minimum requirements](http://www.joomla.org/technical-requirements.html)
* How do you [install Joomla!](http://docs.joomla.org/Installing_Joomla!) ?
* Start your Joomla! experience [building your site with a local test server](http://docs.joomla.org/Tutorial:Joomla_Local_install).
When ready it can be moved to an on-line hosting account of your choice.
* Check the [minimum requirements](http://www.joomla.org/technical-requirements.html).
* How do you [install Joomla](http://docs.joomla.org/Installing_Joomla!)?
* You could start your Joomla! experience by [building your site on a local test server](http://docs.joomla.org/Tutorial:Joomla_Local_install).
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](http://www.joomla.org/download.html).

Where can you get support and help?
---------------------
* [Frequently Asked Questions](http://docs.joomla.org/Category:FAQ) (FAQ)
* Find the [information you need](http://docs.joomla.org/Start_here)
* Find [help and other users](http://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/tos.html) (JRD):
* [Frequently Asked Questions](http://docs.joomla.org/Category:FAQ) (FAQ);
* Find the [information you need](http://docs.joomla.org/Start_here);
* Find [help and other users](http://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/tos.html) (JRD).

Do you already have a Joomla site that's not built with Joomla 3.x ?
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 are the [main differences from 2.5 to 3.x](http://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](http://docs.joomla.org/Should_I_update_from_Joomla!_2.5_to_3.x%3F)?
* What are the [main differences from 1.5 to 2.5](http://docs.joomla.org/Differences_from_Joomla_1.5_to_Joomla_2.5)?
* How to [migrate from 1.5.x to 3.x](http://docs.joomla.org/Migrating_from_Joomla_1.5_to_Joomla_3.0)?
* [Convert an existing Web site to Joomla](http://docs.joomla.org/How_to_Convert_an_existing_Web_site_to_a_Joomla!_Web_site)
* What's [new in Joomla! 3.x](http://www.joomla.org/3)?
* What are the [main differences between 2.5 and 3.x](http://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](http://docs.joomla.org/Should_I_update_from_Joomla!_2.5_to_3.x%3F).
* What are the [main differences betwen 1.5 and 2.5](http://docs.joomla.org/Differences_from_Joomla_1.5_to_Joomla_2.5)?
* How to [migrate from 1.5.x to 3.x](http://docs.joomla.org/Migrating_from_Joomla_1.5_to_Joomla_3.0).
* How to[convert an existing website to Joomla](http://docs.joomla.org/How_to_Convert_an_existing_Web_site_to_a_Joomla!_Web_site).

Do you want to improve Joomla?
---------------------
--------------------
* How do you [request a feature](http://docs.joomla.org/How_do_you_request_a_feature%3F)?
* How do you [report a bug](http://docs.joomla.org/Filing_bugs_and_issues)?
* Get Involved: Joomla! is a community developed software. [Join the community](http://www.joomla.org)
* Documentation for [Developers](http://docs.joomla.org/Developers)
* Documentation for [Web designers](http://docs.joomla.org/Web_designers)
* Get Involved: Joomla! is community developed software. [Join the community](http://www.joomla.org).
* Documentation for [Developers](http://docs.joomla.org/Developers).
* Documentation for [Web designers](http://docs.joomla.org/Web_designers).

Copyright:
Copyright
---------------------
* Copyright (C) 2005 - 2014 Open Source Matters. All rights reserved.
* [Credits](http://docs.joomla.org/Joomla!_Credits_and_Thanks)
* Distributed under the GNU General Public License version 2 or later
* See [Licenses details](http://docs.joomla.org/Joomla_Licenses)
* See [License details](http://docs.joomla.org/Joomla_Licenses)
2 changes: 1 addition & 1 deletion administrator/components/com_admin/models/help.php
Expand Up @@ -201,7 +201,7 @@ public function &getLatestVersionCheck()
{
if (!$this->latest_version_check)
{
$override = 'http://help.joomla.org/proxy/index.php?option=com_help&keyref=Help{major}{minor}:Joomla_Version_{major}_{minor}_{maintenance}';
$override = 'http://help.joomla.org/proxy/index.php?option=com_help&amp;keyref=Help{major}{minor}:Joomla_Version_{major}_{minor}_{maintenance}/{langcode}&amp;lang={langcode}';
$this->latest_version_check = JHelp::createUrl('JVERSION', false, $override);
}

Expand Down
4 changes: 3 additions & 1 deletion administrator/components/com_admin/models/sysinfo.php
Expand Up @@ -9,6 +9,8 @@

defined('_JEXEC') or die;

use Joomla\Registry\Registry;

/**
* Model for the display of system information.
*
Expand Down Expand Up @@ -100,7 +102,7 @@ public function &getConfig()
{
if (is_null($this->config))
{
$registry = new JRegistry(new JConfig);
$registry = new Registry(new JConfig);
$this->config = $registry->toArray();
$hidden = array('host', 'user', 'password', 'ftp_user', 'ftp_pass', 'smtpuser', 'smtppass');

Expand Down
Expand Up @@ -11,6 +11,8 @@

defined('_JEXEC') or die;

use Joomla\Registry\Registry;

/**
* Checks if the eAccelerator caching method is enabled. This check should be
* done through the 3.x series as the issue impacts migrated sites which will
Expand Down Expand Up @@ -49,7 +51,7 @@ function admin_postinstall_eaccelerator_action()

$data = array_merge($prev, $data);

$config = new JRegistry('config');
$config = new Registry('config');
$config->loadArray($data);

jimport('joomla.filesystem.path');
Expand Down
27 changes: 27 additions & 0 deletions administrator/components/com_admin/postinstall/htaccess.php
@@ -0,0 +1,27 @@
<?php
/**
* @package Joomla.Administrator
* @subpackage com_admin
*
* @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*
* This file contains post-installation message handling for notifying users of a change
* in the default .htaccess and web.config files.
*/

defined('_JEXEC') or die;

/**
* Notifies users of a change in the default .htaccess or web.config file
*
* This check returns true regardless of condition.
*
* @return boolean
*
* @since 3.4
*/
function admin_postinstall_htaccess_condition()
{
return true;
}

0 comments on commit 4615fa4

Please sign in to comment.