Issue 91: Create feature to disable a repo

This commit is contained in:
Nathan Adams
2015-02-09 23:24:51 -06:00
parent feb001ed8e
commit 4febdda65f
9 changed files with 85 additions and 5 deletions

View File

@@ -40,6 +40,8 @@ class IDF_Middleware_GoogleAds
*/
function process_response($request, $response)
{
if (isset($response) && !isset($response->status_code))
return $response;
if (!Pluf::f('google_ads', false)) {
return $response;
}