Skip to content

Commit

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

Co-authored-by: encuestabizdevgit <devgit@encuesta.biz>
  • Loading branch information
gabrieljenik and encuestabizdevgit committed Jun 8, 2021
1 parent e88cd98 commit 4246f44
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions third_party/kcfinder/core/bootstrap.php
Expand Up @@ -108,6 +108,7 @@ 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 4246f44

Please sign in to comment.