Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/joomla/staging' into html5…
Browse files Browse the repository at this point in the history
…-system-admin
  • Loading branch information
andrepereiradasilva committed Jun 17, 2016
2 parents 48fb41c + bfca4bf commit bebe3dc
Show file tree
Hide file tree
Showing 180 changed files with 4,920 additions and 4,159 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
/administrator/cache
/administrator/logs
/cache
/installation/cache
/tmp
/configuration.php
/.htaccess
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
UPDATE `#__extensions` SET `protected` = 1, `enabled` = 1 WHERE `name` = 'com_ajax';
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
--
-- Add ACL check for to #__languages
--

ALTER TABLE `#__languages` ADD COLUMN `asset_id` INT(11) NOT NULL AFTER `lang_id`;
Original file line number Diff line number Diff line change
@@ -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);
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
UPDATE "#__extensions" SET "protected" = 1, "enabled" = 1 WHERE "name" = 'com_ajax';
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
--
-- Add ACL check for to #__languages
--

ALTER TABLE "#__languages" ADD COLUMN "asset_id" bigint DEFAULT 0 NOT NULL;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
UPDATE [#__extensions] SET [protected] = 1, [enabled] = 1 WHERE [name] = 'com_ajax';
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
--
-- Add ACL check for to #__languages
--

ALTER TABLE [#__languages] ADD [asset_id] [bigint] NOT NULL DEFAULT 0;
Original file line number Diff line number Diff line change
Expand Up @@ -195,14 +195,14 @@ protected function getInput()
'bootstrap.renderModal',
'categorySelect' . $this->id . 'Modal',
array(
'url' => $urlSelect,
'title' => JText::_('COM_CATEGORIES_SELECT_A_CATEGORY'),
'width' => '800px',
'url' => $urlSelect,
'height' => '400px',
'modalWidth' => '80',
'width' => '800px',
'bodyHeight' => '70',
'modalWidth' => '80',
'footer' => '<button type="button" class="btn" data-dismiss="modal" aria-hidden="true">'
. JText::_("JLIB_HTML_BEHAVIOR_CLOSE") . '</button>'
. JText::_("JLIB_HTML_BEHAVIOR_CLOSE") . '</button>',
)
);

Expand All @@ -211,14 +211,15 @@ protected function getInput()
'bootstrap.renderModal',
'categoryEdit' . $value . 'Modal',
array(
'url' => $urlEdit,
'title' => JText::_('COM_CATEGORIES_EDIT_CATEGORY'),
'backdrop' => 'static',
'keyboard' => false,
'closeButton' => false,
'width' => '800px',
'url' => $urlEdit,
'height' => '400px',
'modalWidth' => '80',
'width' => '800px',
'bodyHeight' => '70',
'modalWidth' => '80',
'footer' => '<button type="button" class="btn" data-dismiss="modal" aria-hidden="true"'
. ' onclick="jQuery(\'#categoryEdit' . $value . 'Modal iframe\').contents().find(\'#closeBtn\').click();">'
. JText::_("JLIB_HTML_BEHAVIOR_CLOSE") . '</button>'
Expand All @@ -227,7 +228,7 @@ protected function getInput()
. JText::_("JSAVE") . '</button>'
. '<button type="button" class="btn btn-success" aria-hidden="true"'
. ' onclick="jQuery(\'#categoryEdit' . $value . 'Modal iframe\').contents().find(\'#applyBtn\').click();">'
. JText::_("JAPPLY") . '</button>'
. JText::_("JAPPLY") . '</button>',
)
);

Expand Down
1 change: 1 addition & 0 deletions administrator/components/com_checkin/checkin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<extension type="component" version="3.1" method="upgrade">
<name>com_checkin</name>
<author>Joomla! Project</author>
<creationDate>April 2006</creationDate>
<copyright>(C) 2005 - 2016 Open Source Matters. All rights reserved.</copyright>
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
<authorEmail>[email protected]</authorEmail>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ public function execute()
// Check if the user is authorized to do this.
if (!JFactory::getUser()->authorise('core.admin'))
{
$this->app->enqueueMessage(JText::_('JERROR_ALERTNOAUTHOR'));
$this->app->redirect('index.php');
echo new JResponseJson(json_encode(false), JText::_('JERROR_ALERTNOAUTHOR'));

JFactory::getApplication()->close();
}

// Get Post DATA
Expand All @@ -40,17 +41,19 @@ public function execute()
'title' => $this->input->get->get('title', '', 'RAW')
);

if (!(substr($permissions['component'], -6) == '.false'))
if (!(substr($permissions['component'], -6) === '.false'))
{
// Load Permissions from Session and send to Model
$model = new ConfigModelApplication;
$response = $model->storePermissions($permissions);

echo new JResponseJson(json_encode($response));
echo new JResponseJson(json_encode($response), $response['message']);
}
else
{
echo new JResponseJson(json_encode(false), 0);
}

JFactory::getApplication()->close();
}
}
Loading

0 comments on commit bebe3dc

Please sign in to comment.