Fixed conflict with linkAssets setting

4th parameter of the function CAssetManager::publish() must respect linkAssets setting, not only YII_DEBUG constant.