Skip to content

Commit

Permalink
Minor - format code
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed Jul 22, 2020
1 parent 6788494 commit 07b8e96
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion plugin/mindmap/ajax/mindmap.ajax.php
Expand Up @@ -45,7 +45,7 @@
];
}

$resultUp = Database::update($table, $params, $whereConditions);
Database::update($table, $params, $whereConditions);

echo 'OK';
} else {
Expand Down
10 changes: 5 additions & 5 deletions plugin/mindmap/inc/edit.form.php
@@ -1,5 +1,7 @@
<?php

/* For licensing terms, see /license.txt */

/**
* Generate the form to add/edit a mindmap record.
*/
Expand All @@ -9,17 +11,15 @@
api_get_self().'?action='.$action.'&id='.$id.'&cid='.$cid.'&sid='.$sessionId
);

if ($action == 'add' || $action == 'edit') {
if ($action === 'add' || $action === 'edit') {
$form->addText('title', get_lang('Title'), true);

$form->addText('description', get_lang('Description'), false);

$isPublic = $form->addElement('checkbox', 'is_public', null, $plugin->get_lang('VisibleByAll'));
$isShared = $form->addElement('checkbox', 'is_shared', null, $plugin->get_lang('EditableByAll'));
$form->addElement('hidden', 'mindmap_type', 'mind');

$form->addButtonSave(get_lang('Save'));
} else {
$ht = '<p style="text-align:center;" ><img alt="'.htmlentities(get_lang('Save')).'" src="img/mindmap128.png" /></p>';
$ht = '<p style="text-align:center;" >
<img alt="'.htmlentities(get_lang('Save')).'" src="img/mindmap128.png" /></p>';
$form->addElement('static', '', '', $ht);
}
2 changes: 2 additions & 0 deletions plugin/mindmap/index.php
@@ -1,3 +1,5 @@
<?php

/* For license terms, see /license.txt */

require __DIR__.'/list.php';

0 comments on commit 07b8e96

Please sign in to comment.