Skip to content
Snippets Groups Projects
Commit 4a50320e authored by Kevin Quillen's avatar Kevin Quillen
Browse files

Bugfix: need to use DRUPAL_ROOT in scandir for the full path to the styles folder.

parent dc15a38d
No related branches found
No related tags found
No related merge requests found
......@@ -110,7 +110,7 @@ class CodeSnippet extends CKEditorPluginBase implements CKEditorPluginConfigurab
* Returns available stylesheets to use for code syntax highlighting.
*/
private function getStyles() {
$styles = preg_grep('/\.css/', scandir('/libraries/codesnippet/lib/highlight/styles'));
$styles = preg_grep('/\.css/', scandir(DRUPAL_ROOT . '/libraries/codesnippet/lib/highlight/styles'));
$style_options = array();
foreach ($styles as $stylesheet) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment