Skip to content

Commit

Permalink
Revert "Fixed issue #17347: 'Class Twig_Environment not found' when u…
Browse files Browse the repository at this point in the history
…ploading an image (#1911)"

This reverts commit 4246f44.
  • Loading branch information
olleharstedt committed Jun 8, 2021
1 parent 4246f44 commit 5aff35f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion third_party/kcfinder/core/bootstrap.php
Expand Up @@ -108,7 +108,6 @@ function checkLSSession()
{
define("BASEPATH", realpath($sLimesurveyFolder . "/../framework") . "/");
}
require_once APPPATH . '../third_party/autoload.php';
require_once BASEPATH . 'yii.php';
require_once APPPATH . 'core/LSYii_Application.php';
$config = require_once(APPPATH . 'config/internal.php');
Expand Down
4 changes: 2 additions & 2 deletions third_party/yiiext/twig-renderer/ETwigViewRenderer.php
Expand Up @@ -67,8 +67,8 @@ class ETwigViewRenderer extends CApplicationComponent implements IViewRenderer

function init()
{
//require_once Yii::getPathOfAlias($this->twigPathAlias).'/Autoloader.php';
//Yii::registerAutoloader(array('Twig_Autoloader', 'autoload'), true);
require_once Yii::getPathOfAlias($this->twigPathAlias).'/Autoloader.php';
Yii::registerAutoloader(array('Twig_Autoloader', 'autoload'), true);

$app = Yii::app();

Expand Down

0 comments on commit 5aff35f

Please sign in to comment.