BUG 0000 "Safe upgrade for JavaScript files" SOLVED
- New feature
- Safe upgrade for JavaScript files
- Added new feature,
- This new feature is activated when you run one of the following commands:
$ ./processmaker upgrade
$ ./processmaker build-js
$ ./processmaker browser-cache-files-upgrade
- The new feature creates an attribute in the file "processmaker/workflow/engine/config/env.ini"
Example:
browser_cache_files_uid = "xxxxxxxxxxyyyyyyyyyyzzzzzzzzzzaa"
- After running the command, the browser should automatically cache the new files
* Available from version ProcessMaker-2.5
This commit is contained in:
@@ -277,10 +277,11 @@ class Main extends Controller
|
||||
$this->setVar( 'advise_text', $adviseText );
|
||||
$loginScript = $this->getHeadPublisher()->getExtJsLibraries();
|
||||
$loginScript .= $this->getHeadPublisher()->getExtJsScripts();
|
||||
$this->setVar( 'login_script', $loginScript );
|
||||
$this->setVar( 'login_vars', $this->getHeadPublisher()->getExtJsVariablesScript() );
|
||||
$this->setVar("login_script", $loginScript);
|
||||
$this->setVar("login_vars", $this->getHeadPublisher()->getExtJsVariablesScript());
|
||||
$this->setVar("URL_TRANSLATION_JS", G::browserCacheFilesUrl("/js/ext/translation.en.js"));
|
||||
|
||||
$this->setLayout( 'pm-modern-login' );
|
||||
$this->setLayout("pm-modern-login");
|
||||
|
||||
$this->render();
|
||||
}
|
||||
@@ -342,10 +343,11 @@ class Main extends Controller
|
||||
|
||||
$loginScript = $this->getHeadPublisher()->getExtJsLibraries();
|
||||
$loginScript .= $this->getHeadPublisher()->getExtJsScripts();
|
||||
$this->setVar( 'login_script', $loginScript );
|
||||
$this->setVar( 'login_vars', $this->getHeadPublisher()->getExtJsVariablesScript() );
|
||||
$this->setVar("login_script", $loginScript);
|
||||
$this->setVar("login_vars", $this->getHeadPublisher()->getExtJsVariablesScript());
|
||||
$this->setVar("URL_TRANSLATION_JS", G::browserCacheFilesUrl("/js/ext/translation.en.js"));
|
||||
|
||||
$this->setLayout( 'pm-modern-login' );
|
||||
$this->setLayout("pm-modern-login");
|
||||
|
||||
$this->render();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user