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