Skip to content

Commit e257f6d

Browse files
committed
Merge pull request #34 from joomla/master
Sync Master with Joomla's
2 parents ccb4168 + b53781a commit e257f6d

File tree

5,231 files changed

+415717
-115144
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

5,231 files changed

+415717
-115144
lines changed

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,14 @@
1616

1717
# Test Related Files #
1818
/phpunit.xml
19+
/tests/system/webdriver/tests/logs/
20+
/tests/system/servers/configdef.php
21+
22+
# phpDocumentor Logs #
23+
phpdoc-*
24+
25+
# Patch Tester
26+
administrator/components/com_patchtester/
27+
administrator/templates/hathor/html/com_patchtester
28+
components/com_patchtester/
29+

.travis.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
language: php
2+
3+
php:
4+
- 5.3
5+
- 5.4
6+
- 5.5
7+
- 5.6
8+
9+
before_script:
10+
- composer self-update
11+
- pyrus install -f pear/PHP_CodeSniffer-1.5.4
12+
- phpenv rehash
13+
- mysql -e 'create database joomla_ut;'
14+
- mysql joomla_ut < tests/unit/suites/database/stubs/mysql.sql
15+
- psql -c 'create database joomla_ut;' -U postgres
16+
- psql -d joomla_ut -a -f tests/unit/suites/database/stubs/postgresql.sql
17+
18+
script:
19+
- phpunit --configuration travisci-phpunit.xml
20+
- phpcs --report=full --extensions=php -p --standard=build/phpcs/Joomla .
21+
22+
branches:
23+
except:
24+
- 2.5.x
25+
26+
notifications:
27+
webhooks:
28+
urls:
29+
- https://webhooks.gitter.im/e/18687d008d633d02aa84
30+
on_success: change # options: [always|never|change] default: always
31+
on_failure: always # options: [always|never|change] default: always
32+
on_start: false # default: false
33+

CONTRIBUTING.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,20 @@ Contributing to the Joomla! CMS
22
===============
33
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:
44

5-
1) Open an item on the Joomlacode tracker in the appropriate area.
6-
* CMS Bug Reports: http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemBrowse&tracker_id=8103
7-
* CMS Feature Requests: http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemBrowse&tracker_id=8549
5+
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.
86

9-
2) After submitting the item to the Joomlacode tracker, add a link to the Joomlacode tracker item and the GitHub issue or pull request.
7+
2) Follow the [Joomla! Coding Standards](http://joomla.github.io/coding-standards)!
108

119
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.
10+
11+
#### Branches
12+
Pull Requests should usually be made for the `staging` branch as this contains the most recent version of the code.
13+
There are other branches available which serve specific purposes.
14+
15+
| Branch | Purpose |
16+
| ------ | ------- |
17+
| staging | Current codebase. |
18+
| 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. |
19+
| 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. |
20+
| 3.2.x | Branch for the Joomla 3.2.x series. Currently in security mode with EOL Oct 2014. Only security issues are fixed. |
21+
| 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. |

README.md

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
1-
Joomla! CMS
1+
Joomla! CMS [![Analytics](https://ga-beacon.appspot.com/UA-544070-3/joomla-cms/readme)](https://github.com/igrigorik/ga-beacon)
22
====================
33

4+
Build Status
5+
---------------------
6+
Travis-CI: [![Build Status](https://travis-ci.org/joomla/joomla-cms.png)](https://travis-ci.org/joomla/joomla-cms)
7+
Jenkins: [![Build Status](http://build.joomla.org/job/cms/badge/icon)](http://build.joomla.org/job/cms/)
8+
49
What is this?
510
---------------------
6-
* This is a Joomla! installation/upgrade package to version 3.0.x
11+
* This is a Joomla! installation/upgrade package to version 3.x
712
* Joomla! [Official site](http://www.joomla.org)
8-
* Joomla! 3.0 [version history](http://docs.joomla.org/Joomla_3.0_version_history)
9-
* Detailed changes in the [Changelog](http://joomlacode.org/gf/project/joomla/scmsvn/?action=browse&path=/development/trunk/administrator/&view=log)
13+
* Joomla! 3.3 [version history](http://docs.joomla.org/Joomla_3.3_version_history)
14+
* Detailed changes in the [Changelog](https://github.com/joomla/joomla-cms/commits/master)
1015

1116
What is Joomla?
1217
---------------------
1318
* Joomla! is a **Content Management System** (CMS) which enables you to build Web sites and powerful online applications.
1419
* It's a **free and OpenSource software**, distributed under the GNU General Public License version 2 or later
15-
* This is a simple and powerful web server application and it requires a server with PHP and MySQL to run it.
20+
* 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.
1621
More [details here](http://www.joomla.org/about-joomla.html)
1722

1823
Is Joomla! for you?
@@ -29,7 +34,7 @@ How to find a Joomla! translation?
2934
Learn Joomla!
3035
---------------------
3136
* Read [Getting Started with Joomla](http://docs.joomla.org/Getting_Started_with_Joomla!) to find out the basics
32-
* Before installing, read the [beginners guide](http://docs.joomla.org/Beginners)
37+
* Before installing, read the [beginners guide](http://docs.joomla.org/Beginners)
3338

3439
What are the limits of Joomla?
3540
---------------------
@@ -45,9 +50,9 @@ Is it easy to change the layout display?
4550
Ready to install Joomla?
4651
---------------------
4752
* See [minimum requirements](http://www.joomla.org/technical-requirements.html)
48-
* How do you [install Joomla!](http://docs.joomla.org/Installing_Joomla!) ?
53+
* How do you [install Joomla!](http://docs.joomla.org/Installing_Joomla!) ?
4954
* Start your Joomla! experience [building your site with a local test server](http://docs.joomla.org/Tutorial:Joomla_Local_install).
50-
When ready it can be moved to an on-line hosting account of your choice.
55+
When ready it can be moved to an on-line hosting account of your choice.
5156

5257
Updates are free!
5358
---------------------
@@ -59,28 +64,28 @@ Where can you get support and help?
5964
* Find the [information you need](http://docs.joomla.org/Start_here)
6065
* Find [help and other users](http://www.joomla.org/about-joomla/create-and-share.html)
6166
* Post questions at [our forums](http://forum.joomla.org)
62-
* [Joomla Resources Directory](http://resources.joomla.org/tos.html) (JRD):
67+
* [Joomla Resources Directory](http://resources.joomla.org/tos.html) (JRD):
6368

64-
Do you already have a Joomla site that's not built with Joomla 3.0.x ?
69+
Do you already have a Joomla site that's not built with Joomla 3.x ?
6570
---------------------
66-
* What's [new in Joomla 3.0.x](http://www.joomla.org/3)
67-
* What are the [main differences from 2.5 to 3.0](http://docs.joomla.org/Differences_from_Joomla_2.5_to_Joomla_3.0)?
68-
* How to [migrate from 2.5.x to 3.0.x](http://docs.joomla.org/Migrating_from_Joomla_2.5_to_Joomla_3.0)?
71+
* What's [new in Joomla 3.x](http://www.joomla.org/3)
72+
* 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)?
73+
* 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)?
6974
* What are the [main differences from 1.5 to 2.5](http://docs.joomla.org/Differences_from_Joomla_1.5_to_Joomla_2.5)?
70-
* How to [migrate from 1.5.x to 3.0.x](http://docs.joomla.org/Migrating_from_Joomla_1.5_to_Joomla_3.0)?
75+
* How to [migrate from 1.5.x to 3.x](http://docs.joomla.org/Migrating_from_Joomla_1.5_to_Joomla_3.0)?
7176
* [Convert an existing Web site to Joomla](http://docs.joomla.org/How_to_Convert_an_existing_Web_site_to_a_Joomla!_Web_site)
7277

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

8186
Copyright:
8287
---------------------
83-
* Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.
84-
* [Credits](http://docs.joomla.org/Joomla_3.0_Credits)
88+
* Copyright (C) 2005 - 2014 Open Source Matters. All rights reserved.
89+
* [Credits](http://docs.joomla.org/Joomla!_Credits_and_Thanks)
8590
* Distributed under the GNU General Public License version 2 or later
8691
* See [Licenses details](http://docs.joomla.org/Joomla_Licenses)

README.txt

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
1- What is this?
2-
* This is a Joomla! installation/upgrade package to version 3.0.x
2+
* This is a Joomla! installation/upgrade package to version 3.x
33
* Joomla! Official site: http://www.joomla.org
4-
* Joomla 3.0 version history - http://docs.joomla.org/Joomla_3.0_version_history
5-
* Detailed changes in the Changelog: http://joomlacode.org/gf/project/joomla/scmsvn/?action=browse&path=/development/trunk/administrator/&view=log
4+
* Joomla 3.3 version history - http://docs.joomla.org/Joomla_3.3_version_history
5+
* Detailed changes in the Changelog: https://github.com/joomla/joomla-cms/commits/master
66

77
2- What is Joomla?
88
* Joomla is a Content Management System (CMS) which enables you to build Web sites and powerful online applications.
99
* It's a free and OpenSource software, distributed under the GNU General Public License version 2 or later
10-
* This is a simple and powerful web server application and it requires a server with PHP and MySQL to run it.
10+
* 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.
1111
More details here: http://www.joomla.org/about-joomla.html
1212

1313
3- Is Joomla for you?
@@ -36,7 +36,7 @@
3636
* See minimum requirements here: http://www.joomla.org/technical-requirements.html
3737
* How do you install Joomla! ? - http://docs.joomla.org/Installing_Joomla!
3838
* Start your Joomla experience building your site with a local test server.
39-
When ready it can be moved to an on-line hosting account of your choice.
39+
When ready it can be moved to an on-line hosting account of your choice.
4040
See the tutorial: http://docs.joomla.org/Tutorial:Joomla_Local_install
4141

4242
9- Updates are free!
@@ -49,12 +49,12 @@
4949
* Post questions at our forums: http://forum.joomla.org
5050
* Joomla Resources Directory (JRD): http://resources.joomla.org/tos.html
5151

52-
11- Do you already have a Joomla site that's not built with Joomla 3.0.x ?
53-
* What's new in Joomla 3.0.x - http://www.joomla.org/3
54-
* What are the main differences from 2.5 to 3.0? Table of contents: http://docs.joomla.org/Differences_from_Joomla_2.5_to_Joomla_3.0
55-
* How to migrate from 2.5.x to 3.0.x? Tutorial: http://docs.joomla.org/Migrating_from_Joomla_2.5_to_Joomla_3.0
52+
11- Do you already have a Joomla site that's not built with Joomla 3.x ?
53+
* What's new in Joomla 3.x - http://www.joomla.org/3
54+
* What are the main differences from 2.5 to 3? Table of contents: http://docs.joomla.org/Differences_from_Joomla_2.5_to_Joomla_3.0
55+
* How to migrate from 2.5.x to 3.x? Tutorial: http://docs.joomla.org/Migrating_from_Joomla_2.5_to_Joomla_3.0
5656
* What are the main differences from 1.5 to 2.5? Table of contents: http://docs.joomla.org/Differences_from_Joomla_1.5_to_Joomla_2.5
57-
* How to migrate from 1.5.x to 3.0.x? Tutorial: http://docs.joomla.org/Migrating_from_Joomla_1.5_to_Joomla_3.0
57+
* How to migrate from 1.5.x to 3.x? Tutorial: http://docs.joomla.org/Migrating_from_Joomla_1.5_to_Joomla_3.0
5858
* Convert an existing Web site to Joomla - http://docs.joomla.org/How_to_Convert_an_existing_Web_site_to_a_Joomla!_Web_site
5959

6060
12- Do you want to improve Joomla?
@@ -65,7 +65,7 @@
6565
* Are you a Web designer? http://docs.joomla.org/Web_designers
6666

6767
Copyright:
68-
* Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.
69-
* Credits: http://docs.joomla.org/Joomla_3.0_Credits
68+
* Copyright (C) 2005 - 2014 Open Source Matters. All rights reserved.
69+
* Credits: http://docs.joomla.org/Joomla!_Credits_and_Thanks
7070
* Distributed under the GNU General Public License version 2 or later
7171
* See Licenses details at http://docs.joomla.org/Joomla_Licenses

administrator/components/com_admin/admin.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@
33
* @package Joomla.Administrator
44
* @subpackage com_admin
55
*
6-
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
6+
* @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
77
* @license GNU General Public License version 2 or later; see LICENSE.txt
88
*/
99

1010
defined('_JEXEC') or die;
11+
JHtml::_('behavior.tabstate');
1112

1213
// No access check.
1314

14-
$controller = JControllerLegacy::getInstance('Admin');
15+
$controller = JControllerLegacy::getInstance('Admin');
1516
$controller->execute(JFactory::getApplication()->input->get('task'));
1617
$controller->redirect();

administrator/components/com_admin/admin.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
<name>com_admin</name>
44
<author>Joomla! Project</author>
55
<creationDate>April 2006</creationDate>
6-
<copyright>(C) 2005 - 2013 Open Source Matters. All rights reserved.
6+
<copyright>(C) 2005 - 2014 Open Source Matters. All rights reserved.
77
</copyright>
8-
<license>GNU General Public License version 2 or later; see
9-
LICENSE.txt</license>
8+
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
109
<authorEmail>[email protected]</authorEmail>
1110
<authorUrl>www.joomla.org</authorUrl>
1211
<version>3.0.0</version>

administrator/components/com_admin/controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @package Joomla.Administrator
44
* @subpackage com_admin
55
*
6-
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
6+
* @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
77
* @license GNU General Public License version 2 or later; see LICENSE.txt
88
*/
99

administrator/components/com_admin/controllers/profile.php

Lines changed: 15 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @package Joomla.Administrator
44
* @subpackage com_admin
55
*
6-
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
6+
* @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
77
* @license GNU General Public License version 2 or later; see LICENSE.txt
88
*/
99

@@ -19,14 +19,15 @@
1919
class AdminControllerProfile extends JControllerForm
2020
{
2121
/**
22-
* Method to check if you can add a new record.
22+
* Method to check if you can edit a record.
2323
*
2424
* Extended classes can override this if necessary.
2525
*
26-
* @param array An array of input data.
27-
* @param string The name of the key for the primary key.
26+
* @param array $data An array of input data.
27+
* @param string $key The name of the key for the primary key.
2828
*
2929
* @return boolean
30+
*
3031
* @since 1.6
3132
*/
3233
protected function allowEdit($data = array(), $key = 'id')
@@ -37,26 +38,16 @@ protected function allowEdit($data = array(), $key = 'id')
3738
/**
3839
* Overrides parent save method to check the submitted passwords match.
3940
*
40-
* @return mixed Boolean or JError.
41-
* @since 1.6
41+
* @param string $key The name of the primary key of the URL variable.
42+
* @param string $urlVar The name of the URL variable if different from the primary key (sometimes required to avoid router collisions).
43+
*
44+
* @return boolean True if successful, false otherwise.
45+
*
46+
* @since 3.2
4247
*/
4348
public function save($key = null, $urlVar = null)
4449
{
45-
$data = $this->input->post->get('jform', array(), 'array');
46-
47-
// TODO: JForm should really have a validation handler for this.
48-
if (isset($data['password']) && isset($data['password2']))
49-
{
50-
// Check the passwords match.
51-
if ($data['password'] != $data['password2'])
52-
{
53-
$this->setMessage(JText::_('JLIB_USER_ERROR_PASSWORD_NOT_MATCH'), 'warning');
54-
$this->setRedirect(JRoute::_('index.php?option=com_admin&view=profile&layout=edit&id='.JFactory::getUser()->id, false));
55-
return false;
56-
}
57-
58-
unset($data['password2']);
59-
}
50+
$this->setRedirect(JRoute::_('index.php?option=com_admin&view=profile&layout=edit&id=' . JFactory::getUser()->id, false));
6051

6152
$return = parent::save();
6253

@@ -72,9 +63,10 @@ public function save($key = null, $urlVar = null)
7263
/**
7364
* Method to cancel an edit.
7465
*
75-
* @param string $key The name of the primary key of the URL variable.
66+
* @param string $key The name of the primary key of the URL variable.
67+
*
68+
* @return Boolean True if access level checks pass, false otherwise.
7669
*
77-
* @return Boolean True if access level checks pass, false otherwise.
7870
* @since 1.6
7971
*/
8072
public function cancel($key = null)

administrator/components/com_admin/helpers/html/directory.php

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @package Joomla.Administrator
44
* @subpackage com_admin
55
*
6-
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
6+
* @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
77
* @license GNU General Public License version 2 or later; see LICENSE.txt
88
*/
99

@@ -21,32 +21,32 @@ abstract class JHtmlDirectory
2121
/**
2222
* Method to generate a (un)writable message for directory
2323
*
24-
* @param boolean $writable is the directory writable?
24+
* @param boolean $writable is the directory writable?
2525
*
2626
* @return string html code
2727
*/
2828
public static function writable($writable)
2929
{
3030
if ($writable)
3131
{
32-
return '<span class="badge badge-success">'. JText::_('COM_ADMIN_WRITABLE') .'</span>';
32+
return '<span class="badge badge-success">' . JText::_('COM_ADMIN_WRITABLE') . '</span>';
3333
}
3434
else
3535
{
36-
return '<span class="badge badge-important">'. JText::_('COM_ADMIN_UNWRITABLE') .'</span>';
36+
return '<span class="badge badge-important">' . JText::_('COM_ADMIN_UNWRITABLE') . '</span>';
3737
}
3838
}
3939

4040
/**
4141
* Method to generate a message for a directory
4242
*
43-
* @param string $dir the directory
44-
* @param boolean $message the message
45-
* @param boolean $visible is the $dir visible?
43+
* @param string $dir the directory
44+
* @param boolean $message the message
45+
* @param boolean $visible is the $dir visible?
4646
*
4747
* @return string html code
4848
*/
49-
public static function message($dir, $message, $visible=true)
49+
public static function message($dir, $message, $visible = true)
5050
{
5151
if ($visible)
5252
{
@@ -56,13 +56,14 @@ public static function message($dir, $message, $visible=true)
5656
{
5757
$output = '';
5858
}
59+
5960
if (empty($message))
6061
{
6162
return $output;
6263
}
6364
else
6465
{
65-
return $output.' <strong>'.JText::_($message).'</strong>';
66+
return $output . ' <strong>' . JText::_($message) . '</strong>';
6667
}
6768
}
6869
}

0 commit comments

Comments
 (0)