mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-23 23:08:39 +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) {
|
||||
echo $message . "\n";
|
||||
echo $message , "\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -59,23 +59,6 @@ class Response extends ResponseAbstract implements RenderableInterface
|
|||
$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.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -32,7 +32,6 @@ use phpOMS\Utils\Parser\Php\ArrayParser;
|
|||
*/
|
||||
class InstallerAbstract
|
||||
{
|
||||
|
||||
/**
|
||||
* Install module.
|
||||
*
|
||||
|
|
@ -71,6 +70,7 @@ class InstallerAbstract
|
|||
$appRoutes = include $destRoutePath;
|
||||
/** @noinspection PhpIncludeInspection */
|
||||
$moduleRoutes = include $srcRoutePath;
|
||||
|
||||
$appRoutes = array_merge_recursive($appRoutes, $moduleRoutes);
|
||||
|
||||
if(is_writable($destRoutePath)) {
|
||||
|
|
|
|||
|
|
@ -135,7 +135,7 @@ abstract class ModuleAbstract
|
|||
{
|
||||
$lang = [];
|
||||
if (($path = realpath($oldPath = __DIR__ . '/../../Modules/' . static::MODULE_NAME . '/Theme/' . $destination . '/Lang/' . $language . '.lang.php')) === false) {
|
||||
throw new PathException($oldPath);
|
||||
return $lang;
|
||||
}
|
||||
|
||||
/** @noinspection PhpIncludeInspection */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user