-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'staging' into en-gb-language-package-consis
- Loading branch information
Showing
75 changed files
with
984 additions
and
526 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 8 additions & 1 deletion
9
administrator/components/com_admin/sql/updates/mysql/3.5.0-2016-03-01.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
ALTER TABLE `#__redirect_links` DROP INDEX `idx_link_old`; | ||
ALTER TABLE `#__redirect_links` MODIFY `old_url` VARCHAR(2048) NOT NULL; | ||
ALTER TABLE `#__redirect_links` MODIFY `new_url` VARCHAR(2048) NOT NULL; | ||
|
||
-- | ||
-- The following statement had to be modified for 3.6.0 by removing the | ||
-- NOT NULL, which was wrong because not consistent with new install. | ||
-- See also 3.6.0-2016-04-06.sql for updating 3.5.0 or 3.5.1 | ||
-- | ||
ALTER TABLE `#__redirect_links` MODIFY `new_url` VARCHAR(2048); | ||
|
||
ALTER TABLE `#__redirect_links` MODIFY `referer` VARCHAR(2048) NOT NULL; | ||
ALTER TABLE `#__redirect_links` ADD INDEX `idx_old_url` (`old_url`(100)); |
1 change: 1 addition & 0 deletions
1
administrator/components/com_admin/sql/updates/mysql/3.6.0-2016-04-06.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ALTER TABLE `#__redirect_links` MODIFY `new_url` VARCHAR(2048); |
9 changes: 8 additions & 1 deletion
9
administrator/components/com_admin/sql/updates/sqlazure/3.5.0-2016-03-01.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
administrator/components/com_admin/sql/updates/sqlazure/3.6.0-2016-04-06.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ALTER TABLE [#__redirect_links] ALTER COLUMN [new_url] [nvarchar](2048); |
111 changes: 111 additions & 0 deletions
111
administrator/components/com_finder/models/fields/contentmap.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
<?php | ||
/** | ||
* @package Joomla.Administrator | ||
* @subpackage com_finder | ||
* | ||
* @copyright Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE | ||
*/ | ||
|
||
defined('JPATH_PLATFORM') or die; | ||
|
||
JFormHelper::loadFieldClass('groupedlist'); | ||
|
||
/** | ||
* Form Field class for the Joomla CMS. | ||
* Supports a select grouped list of finder content map. | ||
* | ||
* @since 3.6.0 | ||
*/ | ||
class JFormFieldContentMap extends JFormFieldGroupedList | ||
{ | ||
/** | ||
* The form field type. | ||
* | ||
* @var string | ||
* @since 3.6.0 | ||
*/ | ||
public $type = 'ContentMap'; | ||
|
||
/** | ||
* Method to get the list of content map options grouped by first level. | ||
* | ||
* @return array The field option objects as a nested array in groups. | ||
* | ||
* @since 3.6.0 | ||
*/ | ||
protected function getGroups() | ||
{ | ||
$groups = array(); | ||
|
||
// Get the database object and a new query object. | ||
$db = JFactory::getDbo(); | ||
|
||
// Levels subquery. | ||
$levelQuery = $db->getQuery(true); | ||
$levelQuery->select('title AS branch_title, 1 as level') | ||
->select($db->quoteName('id')) | ||
->from($db->quoteName('#__finder_taxonomy')) | ||
->where($db->quoteName('parent_id') . ' = 1'); | ||
$levelQuery2 = $db->getQuery(true); | ||
$levelQuery2->select('b.title AS branch_title, 2 as level') | ||
->select($db->quoteName('a.id')) | ||
->from($db->quoteName('#__finder_taxonomy', 'a')) | ||
->join('LEFT', $db->quoteName('#__finder_taxonomy', 'b') . ' ON ' . $db->qn('a.parent_id') . ' = ' . $db->qn('b.id')) | ||
->where($db->quoteName('a.parent_id') . ' NOT IN (0, 1)'); | ||
|
||
$levelQuery->union($levelQuery2); | ||
|
||
// Main query. | ||
$query = $db->getQuery(true) | ||
->select($db->quoteName('a.title', 'text')) | ||
->select($db->quoteName('a.id', 'value')) | ||
->select($db->quoteName('d.level')) | ||
->from($db->quoteName('#__finder_taxonomy', 'a')) | ||
->join('LEFT', '(' . $levelQuery . ') AS d ON ' . $db->qn('d.id') . ' = ' . $db->qn('a.id')) | ||
->where($db->quoteName('a.parent_id') . ' <> 0') | ||
->order('d.branch_title ASC, d.level ASC, a.title ASC'); | ||
|
||
$db->setQuery($query); | ||
|
||
try | ||
{ | ||
$contentMap = $db->loadObjectList(); | ||
} | ||
catch (RuntimeException $e) | ||
{ | ||
return; | ||
} | ||
|
||
// Build the grouped list array. | ||
if ($contentMap) | ||
{ | ||
foreach ($contentMap as $branch) | ||
{ | ||
if ((int) $branch->level === 1) | ||
{ | ||
$name = $branch->text; | ||
} | ||
else | ||
{ | ||
$levelPrefix = str_repeat('- ', max(0, $branch->level - 1)); | ||
|
||
$text = $branch->text == '*' ? 'JALL_LANGUAGE' : $branch->text; | ||
|
||
// Initialize the group if necessary. | ||
if (!isset($groups[$name])) | ||
{ | ||
$groups[$name] = array(); | ||
} | ||
|
||
$groups[$name][] = JHtml::_('select.option', $branch->value, $levelPrefix . JText::_($text)); | ||
} | ||
} | ||
} | ||
|
||
// Merge any additional groups in the XML definition. | ||
$groups = array_merge(parent::getGroups(), $groups); | ||
|
||
return $groups; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.