f2c8bb Do not call the API if issue or pull-requests are disabled and we know it

Authored and Committed by Pierre-Yves Chibon 9 years ago
    Do not call the API if issue or pull-requests are disabled and we know it
    
    Fixes https://pagure.io/pagure/issue/1364