]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Merge commit 'origin/testing' into 0.9.x
authorBrion Vibber <brion@pobox.com>
Fri, 22 Jan 2010 00:33:11 +0000 (16:33 -0800)
committerBrion Vibber <brion@pobox.com>
Fri, 22 Jan 2010 00:33:11 +0000 (16:33 -0800)
1  2 
js/util.js
lib/default.php

diff --combined js/util.js
index aeec8d89d79b9b891694ced9ed68c15bb22a7686,a749c5d9f499256d9d37a0144dad74b6e33945e5..a7339010a7b206218a9955c7730da97355a3ca23
@@@ -205,8 -205,10 +205,10 @@@ var SN = { // StatusNe
                          cookieValue = JSON.parse(cookieValue);
                          NLat = $('#'+SN.C.S.NoticeLat).val(cookieValue.NLat).val();
                          NLon = $('#'+SN.C.S.NoticeLon).val(cookieValue.NLon).val();
-                         NLNS = $('#'+SN.C.S.NoticeLocationNs).val(cookieValue.NLNS).val();
-                         NLID = $('#'+SN.C.S.NoticeLocationId).val(cookieValue.NLID).val();
+                         if ($('#'+SN.C.S.NoticeLocationNs).val(cookieValue.NLNS)) {
+                             NLNS = $('#'+SN.C.S.NoticeLocationNs).val(cookieValue.NLNS).val();
+                             NLID = $('#'+SN.C.S.NoticeLocationId).val(cookieValue.NLID).val();
+                         }
                      }
                      if (cookieValue == 'disabled') {
                          NDG = $('#'+SN.C.S.NoticeDataGeo).attr('checked', false).attr('checked');
  
                      $('#'+SN.C.S.NoticeLat).val(NLat);
                      $('#'+SN.C.S.NoticeLon).val(NLon);
-                     $('#'+SN.C.S.NoticeLocationNs).val(NLNS);
-                     $('#'+SN.C.S.NoticeLocationId).val(NLID);
+                     if ($('#'+SN.C.S.NoticeLocationNs)) {
+                         $('#'+SN.C.S.NoticeLocationNs).val(NLNS);
+                         $('#'+SN.C.S.NoticeLocationId).val(NLID);
+                     }
                      $('#'+SN.C.S.NoticeDataGeo).attr('checked', NDG);
                  }
              });
                      }
  
                      if (typeof(location.name) == 'undefined') {
 -                        NLN_text = position.coords.latitude + ';' + position.coords.longitude;
 +                        NLN_text = data.lat + ';' + data.lon;
                      }
                      else {
                          NLN_text = location.name;
                      $('#'+SN.C.S.NoticeDataGeo).attr('checked', true);
  
                      var cookieValue = {
 -                        'NLat': data.lat,
 -                        'NLon': data.lon,
 -                        'NLNS': lns,
 -                        'NLID': lid,
 -                        'NLN': NLN_text,
 -                        'NLNU': location.url,
 -                        'NDG': true
 +                        NLat: data.lat,
 +                        NLon: data.lon,
 +                        NLNS: lns,
 +                        NLID: lid,
 +                        NLN: NLN_text,
 +                        NLNU: location.url,
 +                        NDG: true
                      };
                      $.cookie(SN.C.S.NoticeDataGeoCookie, JSON.stringify(cookieValue));
                  });
                                          $('#'+SN.C.S.NoticeLon).val(position.coords.longitude);
  
                                          var data = {
 -                                            'lat': position.coords.latitude,
 -                                            'lon': position.coords.longitude,
 -                                            'token': $('#token').val()
 +                                            lat: position.coords.latitude,
 +                                            lon: position.coords.longitude,
 +                                            token: $('#token').val()
                                          };
  
                                          getJSONgeocodeURL(geocodeURL, data);
                              else {
                                  if (NLat.length > 0 && NLon.length > 0) {
                                      var data = {
 -                                        'lat': NLat,
 -                                        'lon': NLon,
 -                                        'token': $('#token').val()
 +                                        lat: NLat,
 +                                        lon: NLon,
 +                                        token: $('#token').val()
                                      };
  
                                      getJSONgeocodeURL(geocodeURL, data);
                      else {
                          removeNoticeDataGeo();
                      }
 -
 -                    $('#'+SN.C.S.NoticeDataText).focus();
                  }).change();
              }
          },
diff --combined lib/default.php
index ceae0efaae8a51c88e1186a98d03b7850f781d50,fc6b4ab79cf854aa50a0fca7432fa721e9f12413..764d309dfd5d02a71d787a68b27b780d1f603497
@@@ -67,7 -67,9 +67,9 @@@ $default 
                'db_driver' => 'DB', # XXX: JanRain libs only work with DB
                'quote_identifiers' => false,
                'type' => 'mysql',
-               'schemacheck' => 'runtime'), // 'runtime' or 'script'
+               'schemacheck' => 'runtime', // 'runtime' or 'script'
+               'log_queries' => false, // true to log all DB queries
+               'log_slow_queries' => 0), // if set, log queries taking over N seconds
          'syslog' =>
          array('appname' => 'statusnet', # for syslog
                'priority' => 'debug', # XXX: currently ignored
                'uploads' => true,
                'filecommand' => '/usr/bin/file',
                ),
 +        'application' =>
 +        array('desclimit' => null),
          'group' =>
          array('maxaliases' => 3,
                'desclimit' => null),
                                   'Mapstraction' => null,
                                   'Linkback' => null,
                                   'WikiHashtags' => null,
 +                                 'PubSubHubBub' => null,
 +                                 'RSSCloud' => null,
                                   'OpenID' => null),
                ),
          'admin' =>