The documentation of the signwriter module claims that $profile->cachedir can be overridden in the theme after loading the profile. Since revision 1.6 of the module file this is not possible any more. Therefore its also not possible to use the module without configuring (as described in the documentation in example 2) and use a non default cachedir.

To solve this problem line 492 can be changed from
$cachedir = variable_get('signwriter_cachedir', 'signwriter-cache');
to
$cachedir = _singwriter_get_val($profile->cachedir, variable_get('signwriter_cachedir', 'signwriter-cache'));

Comments

almich’s picture

Sorry, there is a typing error in the above code. This should be the right version:

$cachedir = _signwriter_get_val($profile->cachedir, variable_get('signwriter_cachedir', 'signwriter-cache'));

nterbogt’s picture

Status: Active » Fixed

A code refactor must have introduced this issue and we just missed it.
Thanks for your response, and this is now in the development release for the 5.x branch. A new release should be out soon.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.