Hi,

I got an error telling me there was an unknown operator in line 37 of sweaver_plugin_fontface.inc I have had a look and on line 37 and 39 it says.....

$objects->property->all['font-family']->property_options += $extra_fonts;

If I remove the plus sign and just leave the equal sign the error goes away and I can see the fonts in SWEAVER.

I am no programmer, so could somebody who knows what they are doing, check this out.

Thanks

Dave

CommentFileSizeAuthor
#2 1212592.patch1.4 KBswentel

Comments

vm’s picture

it's possible that a == was typo'd

try with a double = and report back.

swentel’s picture

Status: Active » Fixed
StatusFileSize
new1.4 KB

It took me a while to get an error in the first place. After a while I got 'Unsupported operand types' which would make more sense, while 'unknown operator' does not, since it only concatenas 2 arrays. However, in some cases, the property_options key isn't an array yet, so this needs to be converted. Patched attached, but already committed and pushed.

Status: Fixed » Closed (fixed)

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