craftsmancoding / assetmanager

Asset Manager for MODX Revolution
36 stars 15 forks source link

scale2h returning $ny for asset_id.width placeholder #44

Open blue148 opened 9 years ago

blue148 commented 9 years ago

the scale2h snippet is returning the height declare in the input filter instead of the calculated width for the asset_id.width placeholder.

line 50: $modx->setPlaceholder('asset_id.width', $ny);

this should be $modx->setPlaceholder('asset_id.width', $nx); which would return the calculated width.