Support calling Context::loadFile() with just a filename

기존에도 사용이 가능하긴 했으나, 정식으로 지원함
This commit is contained in:
Kijin Sung 2021-01-06 23:07:16 +09:00
parent b3b89dc0a1
commit c80a80f986

View file

@ -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);
}