Permalink
Browse files

remove unused function (this was broken anyhow and could only have wo…

…rked on old mgd extension)
  • Loading branch information...
flack committed Jan 9, 2018
1 parent 0e82319 commit 53b4dc162bb0ed2a7d591cd4d6940e99245090e1
Showing with 0 additions and 22 deletions.
  1. +0 −22 lib/midcom/helper/_styleloader.php
@@ -701,26 +701,4 @@ public function leave_context()
$this->_snippetdir = $this->_get_component_snippetdir();
}
/**
* Include all text/css attachments of current style to MidCOM headers
*/
function add_database_head_elements()
{
static $called = false;
if ($called) {
return;
}
$style = $this->get_style();
$mc = midcom_db_attachment::new_collector('parentguid', $style->guid);
$mc->add_constraint('mimetype', '=', 'text/css');
$attachments = $mc->get_values('name');
foreach ($attachments as $guid => $filename) {
// TODO: Support media types
midcom::get()->head->add_stylesheet(midcom_connection::get_url('self') . "midcom-serveattachmentguid-{$guid}/{$filename}");
}
$called = true;
}
}

0 comments on commit 53b4dc1

Please sign in to comment.