summaryrefslogtreecommitdiff
path: root/admin_site_access.php
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2013-02-06 22:28:50 +0000
committerfisharebest <fisharebest@gmail.com>2013-02-06 22:28:50 +0000
commitf8269f4d23bdd1e3749fd7ed6ebbbd642b4c759c (patch)
tree6e8b5c2d8d96498934908abf4ceadc9ee32b0a57 /admin_site_access.php
parentb6926a72973f5c1efcf52f0edcc4687cb5f25dbc (diff)
downloadwebtrees-f8269f4d23bdd1e3749fd7ed6ebbbd642b4c759c.tar.gz
webtrees-f8269f4d23bdd1e3749fd7ed6ebbbd642b4c759c.tar.bz2
webtrees-f8269f4d23bdd1e3749fd7ed6ebbbd642b4c759c.zip
Previously, AJAX pages loaded their own copies of JS libraries (to work around limitation in old versions of jquery?). Don't do this any more - it breaks jQuery extensions, by re-creating the jQuery object. This also has the benefit of making the home page more responsive.
Diffstat (limited to 'admin_site_access.php')
-rw-r--r--admin_site_access.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/admin_site_access.php b/admin_site_access.php
index 8af273d9d0..f049321318 100644
--- a/admin_site_access.php
+++ b/admin_site_access.php
@@ -2,7 +2,7 @@
// Restrict/allow site access based on IP address and user-agent string
//
// webtrees: Web based Family History software
-// Copyright (C) 2012 webtrees development team.
+// Copyright (C) 2013 webtrees development team.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
@@ -24,7 +24,7 @@ define('WT_SCRIPT_NAME', 'admin_site_access.php');
require './includes/session.php';
require WT_ROOT.'includes/functions/functions_edit.php';
-$controller=new WT_Controller_Base();
+$controller=new WT_Controller_Page();
$controller
->requireAdminLogin()
->addExternalJavascript(WT_JQUERY_DATATABLES_URL)