actions/admin/plugins/set_priority.php 1 location
|
@@ 22-27 (lines=6) @@
|
19 |
|
return elgg_error_response(elgg_echo('admin:plugins:set_priority:no', [$plugin_guid])); |
20 |
|
} |
21 |
|
|
22 |
|
if (!$plugin->setPriority($priority)) { |
23 |
|
$msg = $plugin->getError(); |
24 |
|
$string = ($msg) ? 'admin:plugins:set_priority:no_with_msg' : 'admin:plugins:set_priority:no'; |
25 |
|
|
26 |
|
return elgg_error_response(elgg_echo($string, [$plugin->getDisplayName(), $msg])); |
27 |
|
} |
28 |
|
|
29 |
|
// don't regenerate the simplecache because the plugin won't be |
30 |
|
// loaded until next run. Just invalidate and let it regnerate as needed |
actions/admin/plugins/activate_all.php 1 location
|
@@ 59-66 (lines=8) @@
|
56 |
|
} |
57 |
|
} while (count($plugins) > 0); |
58 |
|
|
59 |
|
if (count($plugins) > 0) { |
60 |
|
foreach ($plugins as $plugin) { |
61 |
|
$msg = $plugin->getError(); |
62 |
|
$string = ($msg) ? 'admin:plugins:activate:no_with_msg' : 'admin:plugins:activate:no'; |
63 |
|
|
64 |
|
return elgg_error_response(elgg_echo($string, [$plugin->getDisplayName(), $msg])); |
65 |
|
} |
66 |
|
} |
67 |
|
|
68 |
|
return elgg_ok_response(); |
69 |
|
|
actions/admin/plugins/deactivate.php 1 location
|
@@ 26-31 (lines=6) @@
|
23 |
|
continue; |
24 |
|
} |
25 |
|
|
26 |
|
if (!$plugin->deactivate()) { |
27 |
|
$msg = $plugin->getError(); |
28 |
|
$string = ($msg) ? 'admin:plugins:deactivate:no_with_msg' : 'admin:plugins:deactivate:no'; |
29 |
|
register_error(elgg_echo($string, [$plugin->getDisplayName(), $msg])); |
30 |
|
continue; |
31 |
|
} |
32 |
|
|
33 |
|
$deactivated_plugins[] = $plugin; |
34 |
|
} |
actions/admin/plugins/deactivate_all.php 1 location
|
@@ 31-36 (lines=6) @@
|
28 |
|
continue; |
29 |
|
} |
30 |
|
|
31 |
|
if (!$plugin->deactivate()) { |
32 |
|
$msg = $plugin->getError(); |
33 |
|
$string = ($msg) ? 'admin:plugins:deactivate:no_with_msg' : 'admin:plugins:deactivate:no'; |
34 |
|
|
35 |
|
return elgg_error_response(elgg_echo($string, [$plugin->getDisplayName(), $msg])); |
36 |
|
} |
37 |
|
} |
38 |
|
|
39 |
|
return elgg_ok_response(); |