aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/default/admin/overview/statistics.php2
-rw-r--r--views/default/profile/hover.php7
-rw-r--r--views/installation/input/button.php4
3 files changed, 4 insertions, 9 deletions
diff --git a/views/default/admin/overview/statistics.php b/views/default/admin/overview/statistics.php
index 1785864e7..05b96d166 100644
--- a/views/default/admin/overview/statistics.php
+++ b/views/default/admin/overview/statistics.php
@@ -10,8 +10,6 @@
$users_stats = get_number_users();
$total_users = get_number_users(true);
-global $CONFIG;
-
// Get version information
$version = get_version();
$release = get_version(true);
diff --git a/views/default/profile/hover.php b/views/default/profile/hover.php
index e31a99359..756a5838c 100644
--- a/views/default/profile/hover.php
+++ b/views/default/profile/hover.php
@@ -1,5 +1,7 @@
<?php
-
+/**
+ * User hover wrapper
+ */
?>
@@ -11,6 +13,3 @@
echo elgg_view_menu('user_hover', $vars);
-// @todo change how to add on demand registration of menu items
-global $CONFIG;
-unset($CONFIG->menus['user_hover']);
diff --git a/views/installation/input/button.php b/views/installation/input/button.php
index 76cf5afa1..6704fa8c5 100644
--- a/views/installation/input/button.php
+++ b/views/installation/input/button.php
@@ -15,8 +15,6 @@
*
*/
-global $CONFIG;
-
$class = $vars['class'];
if (!$class) {
$class = "elgg-submit-button";
@@ -44,7 +42,7 @@ $value = htmlentities($vars['value'], ENT_QUOTES, 'UTF-8');
$name = $vars['internalname'];
$src = $vars['src'];
// blank src if trying to access an offsite image.
-if (strpos($src,elgg_get_site_url())===false) {
+if (strpos($src, elgg_get_site_url()) === false) {
$src = "";
}
?>