Migrating deprecated API "pnConfigGetVar".

Migrating deprecated API "pnConfigGetVar".