diff options
-rw-r--r-- | engine/lib/entities.php | 2 | ||||
-rw-r--r-- | engine/lib/languages.php | 2 | ||||
-rw-r--r-- | engine/lib/sites.php | 2 | ||||
-rw-r--r-- | engine/lib/users.php | 4 | ||||
-rw-r--r-- | engine/lib/widgets.php | 3 |
5 files changed, 8 insertions, 5 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php index c57a13d46..c53161e7f 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -942,7 +942,7 @@ else { // Object not cached, load it. - if ($CONFIG->debug) + if (isset($CONFIG->debug) && $CONFIG->debug == true) error_log("** GUID:$guid loaded from DB"); $access = get_access_sql_suffix(); diff --git a/engine/lib/languages.php b/engine/lib/languages.php index b8b5caa6f..be3cf6e54 100644 --- a/engine/lib/languages.php +++ b/engine/lib/languages.php @@ -79,7 +79,7 @@ function register_translations($path) { global $CONFIG; - if ($CONFIG->debug) error_log("Translations loaded from : $path");
+ if (isset($CONFIG->debug) && $CONFIG->debug == true) error_log("Translations loaded from : $path");
if ($handle = opendir($path)) {
while ($language = readdir($handle)) {
diff --git a/engine/lib/sites.php b/engine/lib/sites.php index fe8a23cf1..041c99f72 100644 --- a/engine/lib/sites.php +++ b/engine/lib/sites.php @@ -239,7 +239,7 @@ else { // Object not cached, load it. - if ($CONFIG->debug) + if (isset($CONFIG->debug) && $CONFIG->debug == true) error_log("** Sub part of GUID:$guid loaded from DB"); return get_data_row("SELECT * from {$CONFIG->dbprefix}sites_entity where guid=$guid"); diff --git a/engine/lib/users.php b/engine/lib/users.php index 4445f485f..51cb748c5 100644 --- a/engine/lib/users.php +++ b/engine/lib/users.php @@ -320,7 +320,7 @@ if ($row) { // We have already cached this object, so retrieve its value from the cache - if ($CONFIG->debug) + if (isset($CONFIG->debug) && $CONFIG->debug == true) error_log("** Retrieving sub part of GUID:$guid from cache"); return $row; @@ -328,7 +328,7 @@ else { // Object not cached, load it. - if ($CONFIG->debug) + if (isset($CONFIG->debug) && $CONFIG->debug == true) error_log("** Sub part of GUID:$guid loaded from DB"); $guid = (int)$guid;
diff --git a/engine/lib/widgets.php b/engine/lib/widgets.php index 5838ef2de..b32119f61 100644 --- a/engine/lib/widgets.php +++ b/engine/lib/widgets.php @@ -398,5 +398,8 @@ // Register event
register_elgg_event_handler('init','system','widgets_init');
+ // Use widgets on the dashboard
+ use_widgets('dashboard');
+
?>
\ No newline at end of file |