diff options
| author | Greg Roach <fisharebest@gmail.com> | 2014-08-14 10:35:02 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2014-08-14 10:35:02 +0100 |
| commit | b91ce4e162976f6e4d1c308524ea1bf460430bc8 (patch) | |
| tree | ce015689ba12e7e28a481cff8c199f41fbfb29f8 /library/WT/Controller/Media.php | |
| parent | bcb3a83fa321f35dade827c7d6b46f73a8fd84a9 (diff) | |
| download | webtrees-b91ce4e162976f6e4d1c308524ea1bf460430bc8.tar.gz webtrees-b91ce4e162976f6e4d1c308524ea1bf460430bc8.tar.bz2 webtrees-b91ce4e162976f6e4d1c308524ea1bf460430bc8.zip | |
Import classes, per PSR autoloading standards
Diffstat (limited to 'library/WT/Controller/Media.php')
| -rw-r--r-- | library/WT/Controller/Media.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/library/WT/Controller/Media.php b/library/WT/Controller/Media.php index 1450ebffa0..dcceac8d08 100644 --- a/library/WT/Controller/Media.php +++ b/library/WT/Controller/Media.php @@ -21,6 +21,8 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +use WT\Auth; + require_once WT_ROOT.'includes/functions/functions_print_facts.php'; require_once WT_ROOT.'includes/functions/functions_import.php'; @@ -81,7 +83,7 @@ class WT_Controller_Media extends WT_Controller_GedcomRecord { } // edit raw - if (\WT\Auth::isAdmin() || WT_USER_CAN_EDIT && $SHOW_GEDCOM_RECORD) { + if (Auth::isAdmin() || WT_USER_CAN_EDIT && $SHOW_GEDCOM_RECORD) { $submenu = new WT_Menu(WT_I18N::translate('Edit raw GEDCOM'), '#', 'menu-obje-editraw'); $submenu->addOnclick("return edit_raw('" . $this->record->getXref() . "');"); $menu->addSubmenu($submenu); |
