aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorBrett Profitt <brett.profitt@gmail.com>2012-12-16 17:26:03 -0500
committerBrett Profitt <brett.profitt@gmail.com>2012-12-16 17:26:03 -0500
commit22e8d9be4582b78a500382e14046a653a14e3f43 (patch)
treef1c87208494bc243d510c8daf8c11beb6b1fcabe /views
parentba0761b5a0fb7d5dd3c20179de0f49b1aa8e0a89 (diff)
downloadelgg-22e8d9be4582b78a500382e14046a653a14e3f43.tar.gz
elgg-22e8d9be4582b78a500382e14046a653a14e3f43.tar.bz2
Refs #4643. Cleanup for the upgrade lock.
Diffstat (limited to 'views')
-rw-r--r--views/default/widgets/control_panel/content.php10
1 files changed, 2 insertions, 8 deletions
diff --git a/views/default/widgets/control_panel/content.php b/views/default/widgets/control_panel/content.php
index e6763d851..a348d612f 100644
--- a/views/default/widgets/control_panel/content.php
+++ b/views/default/widgets/control_panel/content.php
@@ -12,13 +12,7 @@ elgg_register_menu_item('admin_control_panel', array(
));
// @todo Move in this in ElggUpgradeManager::isLocked() when #4682 fixed
-global $CONFIG, $DB_QUERY_CACHE;
-$is_locked = count(get_data("show tables like '{$CONFIG->dbprefix}locked'"));
-// Invalidate query cache
-if ($DB_QUERY_CACHE) {
- $DB_QUERY_CACHE->clear();
- elgg_log("Query cache invalidated", 'NOTICE');
-}
+$is_locked = _elgg_upgrade_is_locked();
if (!$is_locked) {
elgg_register_menu_item('admin_control_panel', array(
@@ -33,7 +27,7 @@ if (!$is_locked) {
'text' => elgg_echo('upgrade:unlock'),
'href' => 'action/admin/site/unlock_upgrade',
'is_action' => true,
- 'link_class' => 'elgg-button elgg-button-delete',
+ 'link_class' => 'elgg-button elgg-button-action',
'confirm' => elgg_echo('upgrade:unlock:confirm'),
));
}