mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 10:11:38 +09:00
Support calling Context::loadFile() with just a filename
기존에도 사용이 가능하긴 했으나, 정식으로 지원함
This commit is contained in:
parent
b3b89dc0a1
commit
c80a80f986
1 changed files with 6 additions and 1 deletions
|
|
@ -2018,7 +2018,7 @@ class Context
|
|||
/**
|
||||
* Load front end file
|
||||
*
|
||||
* @param array $args array
|
||||
* @param array|string $args
|
||||
* case js :
|
||||
* $args[0]: file name,
|
||||
* $args[1]: type (head | body),
|
||||
|
|
@ -2033,6 +2033,11 @@ class Context
|
|||
*/
|
||||
public static function loadFile($args)
|
||||
{
|
||||
if (!is_array($args))
|
||||
{
|
||||
$args = func_get_args();
|
||||
}
|
||||
|
||||
self::$_oFrontEndFileHandler->loadFile($args);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue