Line 0
Link Here
|
|
|
1 |
--- plugins/AdminTools/include/MultiView.class.php.orig 2018-07-13 13:24:00 UTC |
2 |
+++ plugins/AdminTools/include/MultiView.class.php |
3 |
@@ -38,7 +38,7 @@ class MultiView |
4 |
); |
5 |
|
6 |
$this->data_url_params = array_keys($this->data); |
7 |
- $this->data_url_params = array_map(create_function('$d', 'return "ato_".$d;'), $this->data_url_params); |
8 |
+ $this->data_url_params = array_map(function($d) { return 'ato_'.$d; }, $this->data_url_params); |
9 |
} |
10 |
|
11 |
/** |
12 |
@@ -226,7 +226,7 @@ class MultiView |
13 |
} |
14 |
if ($this->data['no_history']) |
15 |
{ |
16 |
- $ret_false = create_function('', 'return false;'); |
17 |
+ $ret_false = function() {return false;}; |
18 |
add_event_handler('pwg_log_allowed', $ret_false); |
19 |
add_event_handler('pwg_log_update_last_visit', $ret_false); |
20 |
} |