From 5b9bedc885aa8fc6228fe38c4d8d9700585f6965 Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Wed, 4 Feb 2015 15:18:38 -0500 Subject: [PATCH] Style fix; added default param values. --- .../VuFindTheme/src/VuFindTheme/View/Helper/HeadLink.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/module/VuFindTheme/src/VuFindTheme/View/Helper/HeadLink.php b/module/VuFindTheme/src/VuFindTheme/View/Helper/HeadLink.php index 5c21bef3859..14d3dd5c718 100644 --- a/module/VuFindTheme/src/VuFindTheme/View/Helper/HeadLink.php +++ b/module/VuFindTheme/src/VuFindTheme/View/Helper/HeadLink.php @@ -85,12 +85,15 @@ class HeadLink extends \Zend\View\Helper\HeadLink /** * Compile a less file to css and add to css folder * - * @param string $file path to less file + * @param string $file Path to less file + * @param string $media Media type + * @param string $conditionalStylesheet Load condition for file * * @return void */ - public function addLessStylesheet($file, $media, $conditionalStylesheet) - { + public function addLessStylesheet($file, $media = 'all', + $conditionalStylesheet = false + ) { $relPath = 'less/' . $file; $urlHelper = $this->getView()->plugin('url'); $currentTheme = $this->themeInfo->findContainingTheme($relPath); -- GitLab