mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
Improve sharding (not finished)
This commit is contained in:
parent
b250f24880
commit
7cce8ca1a6
|
|
@ -58,7 +58,15 @@ class ApplicationAbstract
|
|||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected $orgId = 1;
|
||||
protected $orgId = 0;
|
||||
|
||||
/**
|
||||
* App theme.
|
||||
*
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected $theme = '';
|
||||
|
||||
/**
|
||||
* Database object.
|
||||
|
|
|
|||
|
|
@ -256,6 +256,7 @@ abstract class ViewAbstract implements RenderableInterface
|
|||
$includeData = include $path;
|
||||
$ob = (string) \ob_get_clean();
|
||||
|
||||
// todo: is this correct? finally is still called.
|
||||
if (\is_array($includeData)) {
|
||||
return (string) \json_encode($includeData);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user