summaryrefslogtreecommitdiff
path: root/library/WT/Controller/Note.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2014-09-18 21:29:55 +0100
committerGreg Roach <fisharebest@gmail.com>2014-09-18 21:29:55 +0100
commitf0b7ed18c5ba7ec20b85c58ace1700983779ba42 (patch)
tree599027e46d2d1e9fdd401ef5182893e2a62ccf05 /library/WT/Controller/Note.php
parent5b4fd708c98ec8db636f3260a5d42f2ed8a64334 (diff)
downloadwebtrees-f0b7ed18c5ba7ec20b85c58ace1700983779ba42.tar.gz
webtrees-f0b7ed18c5ba7ec20b85c58ace1700983779ba42.tar.bz2
webtrees-f0b7ed18c5ba7ec20b85c58ace1700983779ba42.zip
Unused code
Diffstat (limited to 'library/WT/Controller/Note.php')
-rw-r--r--library/WT/Controller/Note.php11
1 files changed, 0 insertions, 11 deletions
diff --git a/library/WT/Controller/Note.php b/library/WT/Controller/Note.php
index 5c95aff884..d7ef5dc412 100644
--- a/library/WT/Controller/Note.php
+++ b/library/WT/Controller/Note.php
@@ -35,8 +35,6 @@ class WT_Controller_Note extends WT_Controller_GedcomRecord {
* get edit menu
*/
function getEditMenu() {
- $SHOW_GEDCOM_RECORD=get_gedcom_setting(WT_GED_ID, 'SHOW_GEDCOM_RECORD');
-
if (!$this->record || $this->record->isOld()) {
return null;
}
@@ -50,15 +48,6 @@ class WT_Controller_Note extends WT_Controller_GedcomRecord {
$menu->addSubmenu($submenu);
}
- // edit raw
- /* Does not currently work - NOTE records do not contain nice level 1 facts
- if (Auth::isAdmin() || WT_USER_CAN_EDIT && $SHOW_GEDCOM_RECORD) {
- $submenu = new WT_Menu(WT_I18N::translate('Edit raw GEDCOM'), '#', 'menu-note-editraw');
- $submenu->addOnclick("return edit_raw('" . $this->record->getXref() . "');");
- $menu->addSubmenu($submenu);
- }
- */
-
// delete
if (WT_USER_CAN_EDIT) {
$submenu = new WT_Menu(WT_I18N::translate('Delete'), '#', 'menu-note-del');