Skip to content
Snippets Groups Projects
Commit 9ba47898 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

load text in source action. fixes #2110

parent 2f70e492
No related branches found
No related tags found
No related merge requests found
...@@ -16,9 +16,21 @@ class Source extends AbstractAction { ...@@ -16,9 +16,21 @@ class Source extends AbstractAction {
return AUTH_READ; return AUTH_READ;
} }
/** @inheritdoc */
public function preProcess() {
global $TEXT;
global $INFO;
global $ID;
global $REV;
if($INFO['exists']) {
$TEXT = rawWiki($ID, $REV);
}
}
/** @inheritdoc */ /** @inheritdoc */
public function tplContent() { public function tplContent() {
html_edit(); // FIXME is this correct? Should we split it off completely? html_edit();
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment