Hey guys,

there is a big issue with this module: If drupal is in a subdirectory the files cannot be saved because the path is wrong. We (Drupal Usergroup Berlin) fixed that and now I'm trying to create the patch ;)

Yannick

CommentFileSizeAuthor
#1 1164316.patch922 bytesyannickoo

Comments

yannickoo’s picture

Title: Saving doesn't work if drupal is in a subdirectory » Saving css files doesn't work if drupal is in a subdirectory
Status: Active » Needs review
StatusFileSize
new922 bytes

The patch is attached!

Yannick

dawehner’s picture

Status: Needs review » Needs work
+++ css.js.new	2011-05-21 03:18:29.054733287 +0200
@@ -70,7 +70,7 @@ window.styler = {
+            url: Drupal.settings.basePath + '/css/save',

Doesn't Drupal.setttings.basePath already include "/"?
At least drupal.org does.

Powered by Dreditor.

guybedford’s picture

Thanks for catching this one - yes the basePath already has the slash. So the patch should include

url: Drupal.settings.basePath + 'css/save'

I've incorporated this patch into the development release (as well as some other new features). It's on the nightly dev snapshot, so should hopefully display soon.

guybedford’s picture

Status: Needs work » Closed (fixed)

Thanks for the assistance, this has been fixed in the latest version

yannickoo’s picture

Oh sorry, I forgot that. But yeah the issue is fixed! My second patch ;)