1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-11 17:14:42 +02:00

Reduced some memory usage.

This commit is contained in:
Cameron
2021-01-24 17:00:02 -08:00
parent 8508cabcad
commit 522d71d243
30 changed files with 99 additions and 104 deletions

View File

@@ -589,9 +589,8 @@ class eDispatcher
$controller->dispatch($actionName);
$content = ob_get_contents();
ob_end_clean();
$content = ob_get_clean();
$response->appendBody($content);
unset($controller);
}
@@ -3204,7 +3203,7 @@ class eController
*/
public function __call($methodName, $args)
{
if ('action' == substr($methodName, 0, 6))
if (strpos($methodName, 'action') === 0)
{
$action = substr($methodName, 6);
throw new eException('Action "'.$action.'" does not exist', 2404);