]> git.mxchange.org Git - friendica.git/commitdiff
Merge remote-tracking branch 'upstream/master'
authorMichael Vogel <icarus@dabo.de>
Mon, 13 Jan 2014 18:59:34 +0000 (19:59 +0100)
committerMichael Vogel <icarus@dabo.de>
Mon, 13 Jan 2014 18:59:34 +0000 (19:59 +0100)
Conflicts:
include/acl_selectors.php

boot.php
include/acl_selectors.php
include/dba.php
include/html2plain.php
include/poller.php

index 6e2c2fb4f5201af27d08fabbbcca8a30697fdd91..a784b37b05b897001f9e2f2c73f2342922d94d23 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -141,6 +141,7 @@ define ( 'NETWORK_MYSPACE',          'mysp');    // MySpace
 define ( 'NETWORK_GPLUS',            'goog');    // Google+
 define ( 'NETWORK_PUMPIO',           'pump');    // pump.io
 define ( 'NETWORK_TWITTER',          'twit');    // Twitter
+define ( 'NETWORK_DIASPORA2',        'dspc');    // Diaspora connector
 
 define ( 'NETWORK_PHANTOM',          'unkn');    // Place holder
 
@@ -165,6 +166,7 @@ $netgroup_ids = array(
        NETWORK_GPLUS    => (-12),
        NETWORK_PUMPIO   => (-13),
        NETWORK_TWITTER  => (-14),
+       NETWORK_DIASPORA2 => (-15),
 
        NETWORK_PHANTOM  => (-127),
 );
@@ -1628,7 +1630,7 @@ if(! function_exists('get_birthdays')) {
                                                $sparkle = " sparkle";
                                                $url = $a->get_baseurl() . '/redir/'  . $rr['cid'];
                                        }
-       
+
                                        $rr['link'] = $url;
                                        $rr['title'] = $rr['name'];
                                        $rr['date'] = day_translate(datetime_convert('UTC', $a->timezone, $rr['start'], $rr['adjust'] ? $bd_format : $bd_short)) . (($today) ?  ' ' . t('[today]') : '');
index 886bce877387ade50d3bb9ab0c886849a8677938..72c434692c0c6087f432f56402049ba41c248b70 100644 (file)
@@ -320,7 +320,7 @@ function populate_acl($user = null,$celeb = false) {
        $o .= '</div>';
        $o .= '</div>' . "\r\n";
        $o .= '<div id="acl-wrapper-end"></div>' . "\r\n";*/
-       
+
        $tpl = get_markup_template("acl_selector.tpl");
        $o = replace_macros($tpl, array(
                '$showall'=> t("Visible to everybody"),
@@ -334,8 +334,8 @@ function populate_acl($user = null,$celeb = false) {
                        "aclautomention"=>(feature_enabled($user['uid'],"aclautomention")?"true":"false")
                ),
        ));
-       
-       
+
+
        return $o;
 
 }
index dae14559312d00ebb1b8bf8a358ccecd40380e5f..293cce5780c018f08b3256c55e374a461466add8 100644 (file)
@@ -99,7 +99,7 @@ class dba {
                        if (($duration > $a->config["system"]["db_loglimit"])) {
                                $duration = round($duration, 3);
                                $backtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
-                               @file_put_contents($a->config["system"]["db_log"], $duration."\t".
+                               @file_put_contents($a->config["system"]["db_log"], datetime_convert()."\t".$duration."\t".
                                                basename($backtrace[1]["file"])."\t".
                                                $backtrace[1]["line"]."\t".$backtrace[2]["function"]."\t".
                                                substr($sql, 0, 2000)."\n", FILE_APPEND);
index dfb577abe18018714b4518dd4319ec457addc18e..bcdf89c2cc9b5ef1da0197ae5f2af3a1dda078c1 100644 (file)
@@ -218,7 +218,7 @@ function html2plain($html, $wraplength = 75, $compact = false)
 
        $message = html_entity_decode($message, ENT_QUOTES, 'UTF-8');
 
-       if (!$compact) {
+       if (!$compact AND ($message != "")) {
                $counter = 1;
                foreach ($urls as $id=>$url)
                        if (strpos($message, $url) === false)
index 9ba9c782b7865e54b772923234641978845bd436..9b18fe3c6d9901dbe5f79c4f0cecb6e54f475270 100644 (file)
@@ -89,6 +89,9 @@ function poller_run(&$argv, &$argc){
        // Check OStatus conversations
        check_conversations();
 
+       // To-Do: Regenerate usage statistics
+       // q("ANALYZE TABLE `item`");
+
        // once daily run birthday_updates and then expire in background
 
        $d1 = get_config('system','last_expire_day');