error(_("Raw HTML is disabled in this wiki."));
}
// FIXME: this test for lockedness is badly flawed. It checks
// the requested pages locked state, not the page the plugin
// invocation came from. (These could be different in the
// case of ActionPages, or where the IncludePage plugin is
// used.)
$page = $request->getPage();
if (! $page->get('locked')) {
return $this->error(fmt(_("%s is only allowed in locked pages."),
_("Raw HTML")));
}
return HTML::raw($argstr);
}
}
// For emacs users
// Local Variables:
// mode: php
// tab-width: 8
// c-basic-offset: 4
// c-hanging-comment-ender-p: nil
// indent-tabs-mode: nil
// End:
?>