Config/Profiler

* update config to enable/disable profiler in general, instead of just the queue
 * regenerate affected files on config change
This commit is contained in:
Sarjuuk
2018-03-27 12:39:14 +02:00
parent c17cf9c043
commit 22d02378ef
13 changed files with 37 additions and 7 deletions

View File

@@ -471,7 +471,8 @@ class AjaxAdmin extends AjaxHandler
$msg .= ' * remember to rebuild all static files for the language you just added.<br />';
$msg .= ' * you can speed this up by supplying the regionCode to the setup: <pre class="q1">--locales=<regionCodes,> -f</pre>';
break;
case 'profiler_queue':
case 'profiler_enable':
$buildList = 'realms,realmMenu';
$fn = function($x) use (&$msg) {
if (!$x)
return true;

View File

@@ -47,6 +47,9 @@ class AjaxProfile extends AjaxHandler
if (!$this->params)
return;
if (!CFG_PROFILER_ENABLE)
return;
switch ($this->params[0])
{
case 'unlink':