summaryrefslogtreecommitdiffstats
path: root/application/controllers
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2017-03-26 19:30:11 +0200
committerFlorian Pritz <bluewind@xinu.at>2017-03-26 19:30:49 +0200
commitdbc02ddf5e66c4f7439c6997ed1e6b59bfd98173 (patch)
treeda5e155ca889f8c2901a03e28069abcef865abe9 /application/controllers
parent5e65f7a40ded1827be1317ee09fc65174cb673c2 (diff)
s/renderer: Pass output_cache in constructor
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/controllers')
-rw-r--r--application/controllers/file/file_default.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/application/controllers/file/file_default.php b/application/controllers/file/file_default.php
index 826e3f4af..2a26c380c 100644
--- a/application/controllers/file/file_default.php
+++ b/application/controllers/file/file_default.php
@@ -225,8 +225,8 @@ class File_default extends MY_Controller {
$output_cache->add(array("filedata" => $filedata), "file/fragments/asciinema-player");
} else {
$output_cache->add_function(function() use ($output_cache, $filedata, $lexer, $is_multipaste) {
- $renderer = new \service\renderer($this->mfile, $this->data);
- $renderer->highlight_file($output_cache, $filedata, $lexer, $is_multipaste);
+ $renderer = new \service\renderer($output_cache, $this->mfile, $this->data);
+ $renderer->highlight_file($filedata, $lexer, $is_multipaste);
});
}
}