mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
Split frontend URL rewriting script into its own file loaded separately
This commit is contained in:
parent
16cf779d7a
commit
0de42bebaf
3 changed files with 202 additions and 193 deletions
|
|
@ -105,7 +105,11 @@ class BoardView extends Board
|
|||
* load javascript, JS filters
|
||||
**/
|
||||
Context::addJsFilter($this->module_path.'tpl/filter', 'input_password.xml');
|
||||
Context::addJsFile($this->module_path.'tpl/js/board.js');
|
||||
Context::loadFile([$this->module_path.'tpl/js/board.js', 'head']);
|
||||
if (config('url.rewrite') > 1)
|
||||
{
|
||||
Context::loadFile([$this->module_path.'tpl/js/rewrite.js', 'body']);
|
||||
}
|
||||
Context::loadLang('./modules/document/lang');
|
||||
Context::loadLang('./modules/comment/lang');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue