Commit 010dcd27 authored by Nigel McNie's avatar Nigel McNie
Browse files

Make view export be properly granular.

parent 566ea78f
......@@ -169,14 +169,10 @@ class PluginExportHtml extends PluginExport {
/**
* Dumps all views into the HTML export
*
* TODO: respect $this->views
*/
private function dump_view_export_data() {
if ($viewids = get_column('view', 'id', 'owner', $this->get('user')->get('id'), 'type', 'portfolio')) {
$smarty = $this->get_smarty('../../');
foreach ($viewids as $viewid) {
$view = new View($viewid);
foreach ($this->views as $viewid => $view) {
$smarty->assign('breadcrumbs', array(
array('text' => get_string('Views', 'view')),
array('text' => $view->get('title'), 'path' => 'index.html'),
......@@ -195,7 +191,6 @@ class PluginExportHtml extends PluginExport {
}
}
}
}
private function get_view_summary() {
$smarty = $this->get_smarty('../');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment