mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-12 14:58:42 +00:00
Performance, bug and design fixes
This commit is contained in:
parent
2e3c475a8f
commit
02e5185e74
|
|
@ -297,7 +297,7 @@ class FileLogger implements LoggerInterface
|
||||||
}
|
}
|
||||||
|
|
||||||
if (self::$verbose) {
|
if (self::$verbose) {
|
||||||
echo $message . "\n";
|
echo $message , "\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -59,23 +59,6 @@ class Response extends ResponseAbstract implements RenderableInterface
|
||||||
$this->response = $response;
|
$this->response = $response;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Push a specific response ID.
|
|
||||||
*
|
|
||||||
* @param int $id Response ID
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*
|
|
||||||
* @since 1.0.0
|
|
||||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
||||||
*/
|
|
||||||
public function pushResponseId(int $id)
|
|
||||||
{
|
|
||||||
ob_start();
|
|
||||||
echo $this->response[$id];
|
|
||||||
ob_end_flush();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Remove response by ID.
|
* Remove response by ID.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,6 @@ use phpOMS\Utils\Parser\Php\ArrayParser;
|
||||||
*/
|
*/
|
||||||
class InstallerAbstract
|
class InstallerAbstract
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Install module.
|
* Install module.
|
||||||
*
|
*
|
||||||
|
|
@ -71,6 +70,7 @@ class InstallerAbstract
|
||||||
$appRoutes = include $destRoutePath;
|
$appRoutes = include $destRoutePath;
|
||||||
/** @noinspection PhpIncludeInspection */
|
/** @noinspection PhpIncludeInspection */
|
||||||
$moduleRoutes = include $srcRoutePath;
|
$moduleRoutes = include $srcRoutePath;
|
||||||
|
|
||||||
$appRoutes = array_merge_recursive($appRoutes, $moduleRoutes);
|
$appRoutes = array_merge_recursive($appRoutes, $moduleRoutes);
|
||||||
|
|
||||||
if(is_writable($destRoutePath)) {
|
if(is_writable($destRoutePath)) {
|
||||||
|
|
|
||||||
|
|
@ -135,7 +135,7 @@ abstract class ModuleAbstract
|
||||||
{
|
{
|
||||||
$lang = [];
|
$lang = [];
|
||||||
if (($path = realpath($oldPath = __DIR__ . '/../../Modules/' . static::MODULE_NAME . '/Theme/' . $destination . '/Lang/' . $language . '.lang.php')) === false) {
|
if (($path = realpath($oldPath = __DIR__ . '/../../Modules/' . static::MODULE_NAME . '/Theme/' . $destination . '/Lang/' . $language . '.lang.php')) === false) {
|
||||||
throw new PathException($oldPath);
|
return $lang;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @noinspection PhpIncludeInspection */
|
/** @noinspection PhpIncludeInspection */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user