Commit 4a50320e authored by kevinquillen's avatar kevinquillen

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

parent dc15a38d
......@@ -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) {
......
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