From f4afa648fcb1eff2558e414d35a921dbfbf02078 Mon Sep 17 00:00:00 2001 From: Greg Roach Date: Sun, 11 Nov 2018 19:36:26 +0000 Subject: Rename GedcomRecord::getTree() to tree() --- resources/views/media-page.phtml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'resources/views/media-page.phtml') diff --git a/resources/views/media-page.phtml b/resources/views/media-page.phtml index 49d7ba7879..57db9e34b6 100644 --- a/resources/views/media-page.phtml +++ b/resources/views/media-page.phtml @@ -7,15 +7,15 @@ isPendingDeletion()) : ?> - getTree())) : ?> - /* I18N: %1$s is “accept”, %2$s is “reject”. These are links. */ I18N::translate('This media object has been deleted. You should review the deletion and then %1$s or %2$s it.', '' . I18N::translateContext('You should review the deletion and then accept or reject it.', 'accept') . '', '' . I18N::translateContext('You should review the deletion and then accept or reject it.', 'reject') . '') . ' ' . FunctionsPrint::helpLink('pending_changes')]) ?> - getTree())) : ?> + tree())) : ?> + /* I18N: %1$s is “accept”, %2$s is “reject”. These are links. */ I18N::translate('This media object has been deleted. You should review the deletion and then %1$s or %2$s it.', '' . I18N::translateContext('You should review the deletion and then accept or reject it.', 'accept') . '', '' . I18N::translateContext('You should review the deletion and then accept or reject it.', 'reject') . '') . ' ' . FunctionsPrint::helpLink('pending_changes')]) ?> + tree())) : ?> I18N::translate('This media object has been deleted. The deletion will need to be reviewed by a moderator.') . ' ' . FunctionsPrint::helpLink('pending_changes')]) ?> isPendingAddition()) : ?> - getTree())) : ?> - /* I18N: %1$s is “accept”, %2$s is “reject”. These are links. */ I18N::translate('This media object has been edited. You should review the changes and then %1$s or %2$s them.', '' . I18N::translateContext('You should review the changes and then accept or reject them.', 'accept') . '', '' . I18N::translateContext('You should review the changes and then accept or reject them.', 'reject') . '') . ' ' . FunctionsPrint::helpLink('pending_changes')]) ?> - getTree())) : ?> + tree())) : ?> + /* I18N: %1$s is “accept”, %2$s is “reject”. These are links. */ I18N::translate('This media object has been edited. You should review the changes and then %1$s or %2$s them.', '' . I18N::translateContext('You should review the changes and then accept or reject them.', 'accept') . '', '' . I18N::translateContext('You should review the changes and then accept or reject them.', 'reject') . '') . ' ' . FunctionsPrint::helpLink('pending_changes')]) ?> + tree())) : ?> I18N::translate('This media object has been edited. The changes need to be reviewed by a moderator.') . ' ' . FunctionsPrint::helpLink('pending_changes')]) ?> @@ -71,9 +71,9 @@ canEdit()) : ?>
- 'btn btn-link', 'href' => '#', 'data-toggle' => 'modal', 'data-target' => '#wt-ajax-modal', 'data-href' => route('edit-media-file', ['ged' => $media->getTree()->name(), 'xref' => $media->xref(), 'fact_id' => $media_file->factId()])]) ?> + 'btn btn-link', 'href' => '#', 'data-toggle' => 'modal', 'data-target' => '#wt-ajax-modal', 'data-href' => route('edit-media-file', ['ged' => $media->tree()->name(), 'xref' => $media->xref(), 'fact_id' => $media_file->factId()])]) ?> mediaFiles()) > 1) : ?> - 'btn btn-link', 'href' => '#', 'onclick' => 'return delete_fact("' . I18N::translate('Are you sure you want to delete this fact?') . '", "' . e($media->getTree()->name()) . '", , "' . e($media->xref()) . '", "' . $media_file->factId() . '");']) ?> + 'btn btn-link', 'href' => '#', 'onclick' => 'return delete_fact("' . I18N::translate('Are you sure you want to delete this fact?') . '", "' . e($media->tree()->name()) . '", , "' . e($media->xref()) . '", "' . $media_file->factId() . '");']) ?>
@@ -82,10 +82,10 @@
isExternal()) : ?> filename()) ?> - getTree())) : ?> + tree())) : ?> filename()) ?> fileExists()) : ?> - getTree()->getPreference('SHOW_MEDIA_DOWNLOAD') >= Auth::accessLevel($media->getTree())) : ?> + tree()->getPreference('SHOW_MEDIA_DOWNLOAD') >= Auth::accessLevel($media->tree())) : ?> — @@ -120,7 +120,7 @@ - + @@ -130,7 +130,7 @@ - + @@ -140,7 +140,7 @@ - + @@ -150,7 +150,7 @@ - + -- cgit v1.3