Skip to content
This repository has been archived by the owner on Mar 8, 2021. It is now read-only.

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
MrSwed committed May 17, 2016
1 parent f820b2e commit 2f7c855
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions install/setup.sql
Expand Up @@ -448,7 +448,7 @@ CREATE TABLE IF NOT EXISTS `{PREFIX}user_roles` (
`import_static` int(1) NOT NULL default '0',
`export_static` int(1) NOT NULL default '0',
`remove_locks` int(1) NOT NULL default '0',
`change_ressourcetype` int(1) NOT NULL default '0',
`change_resourcetype` int(1) NOT NULL default '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM COMMENT='Contains information describing the user roles.';

Expand Down Expand Up @@ -778,7 +778,7 @@ ALTER TABLE `{PREFIX}site_htmlsnippets`
#1.1-1.1.1-beta

ALTER TABLE `{PREFIX}user_roles`
ADD COLUMN `change_ressourcetype` INT( 1 ) NOT NULL DEFAULT '0';
ADD COLUMN `change_resourcetype` INT( 1 ) NOT NULL DEFAULT '0';

# ]]upgrade-able

Expand Down
2 changes: 1 addition & 1 deletion manager/actions/mutate_content.dynamic.php
Expand Up @@ -888,7 +888,7 @@ function decode(s) {

<?php

if ($_SESSION['mgrRole'] == 1 || $_REQUEST['a'] != '27' || $_SESSION['mgrInternalKey'] == $content['createdby'] || $modx->hasPermission('change_ressourcetype')) {
if ($_SESSION['mgrRole'] == 1 || $_REQUEST['a'] != '27' || $_SESSION['mgrInternalKey'] == $content['createdby'] || $modx->hasPermission('change_resourcetype')) {
?>
<tr style="height: 24px;"><td width="150"><span class="warning"><?php echo $_lang['resource_type']?></span></td>
<td><select name="type" class="inputBox" onchange="documentDirty=true;" style="width:200px">
Expand Down
2 changes: 1 addition & 1 deletion manager/actions/mutate_role.dynamic.php
Expand Up @@ -132,7 +132,7 @@ function deletedocument() {
echo render_form('view_document', $_lang['role_view_docdata'], 'disabled');
echo render_form('new_document', $_lang['role_create_doc']);
echo render_form('edit_document', $_lang['role_edit_doc']);
echo render_form('change_ressourcetype',$_lang['role_change_ressourcetype']);
echo render_form('change_resourcetype',$_lang['role_change_resourcetype']);
echo render_form('save_document', $_lang['role_save_doc']);
echo render_form('publish_document', $_lang['role_publish_doc']);
echo render_form('delete_document', $_lang['role_delete_doc']);
Expand Down
2 changes: 1 addition & 1 deletion manager/includes/lang/english.inc.php
Expand Up @@ -775,7 +775,7 @@
$_lang["role_bk_manager"] = 'Use the Backup Manager';
$_lang["role_cache_refresh"] = 'Empty the site\'s cache';
$_lang["role_change_password"] = 'Change password';
$_lang["role_change_ressourcetype"] = 'Change Ressource-Type';
$_lang["role_change_resourcetype"] = 'Change Resource-Type';
$_lang["role_chunk_management"] = 'Chunk management';
$_lang["role_config_management"] = 'Configuration management';
$_lang["role_content_management"] = 'Content management';
Expand Down
2 changes: 1 addition & 1 deletion manager/processors/save_role.processor.php
Expand Up @@ -82,7 +82,7 @@
'import_static' => $import_static,
'export_static' => $export_static,
'remove_locks' => $remove_locks,
'change_ressourcetype' => $change_ressourcetype
'change_resourcetype' => $change_resourcetype
);

$fields = $modx->db->escape($fields);
Expand Down

0 comments on commit 2f7c855

Please sign in to comment.