id = $id; $this->preference['fromAjax'] = false; // see doluwiki\Ajax::callMediadiff() $this->preference['showIntro'] = false; $this->preference['difftype'] = null; // both, opacity or portions. see lib/scripts/media.js } /** * Shows difference between two revisions of media */ public function show() { $ns = getNS($this->id); $auth = auth_quickaclcheck("$ns:*"); media_diff($this->id, $ns, $auth, $this->preference['fromAjax']); } }