All pastes #2069325 Raw Edit

Untitled

public text v1 · immutable
#2069325 ·published 2011-05-26 08:17 UTC
rendered paste body
diff --git a/CRM/Core/BAO/Setting.php b/CRM/Core/BAO/Setting.php
index 292f63a..3d5f6b6 100644
--- a/CRM/Core/BAO/Setting.php
+++ b/CRM/Core/BAO/Setting.php
@@ -205,6 +205,10 @@ class CRM_Core_BAO_Setting
                 return;
             }
 
+           if ( basename($_SERVER["SCRIPT_NAME"]) == "rest.php" ) {
+               return;
+           }
+
 
             // check if there are any locale strings
             if ( $domain->locale_custom_strings ) {