disable archive widget for PHP < 5.3

pull/333/merge
friendica 2012-06-13 16:17:45 -07:00
rodzic a424fecdae
commit d908c9dd71
3 zmienionych plików z 48 dodań i 32 usunięć

Wyświetl plik

@ -10,7 +10,7 @@ require_once('include/nav.php');
require_once('include/cache.php'); require_once('include/cache.php');
define ( 'FRIENDICA_PLATFORM', 'Friendica'); define ( 'FRIENDICA_PLATFORM', 'Friendica');
define ( 'FRIENDICA_VERSION', '3.0.1372' ); define ( 'FRIENDICA_VERSION', '3.0.1373' );
define ( 'DFRN_PROTOCOL_VERSION', '2.23' ); define ( 'DFRN_PROTOCOL_VERSION', '2.23' );
define ( 'DB_UPDATE_VERSION', 1149 ); define ( 'DB_UPDATE_VERSION', 1149 );

Wyświetl plik

@ -3436,6 +3436,18 @@ function posted_dates($uid,$wall) {
function posted_date_widget($url,$uid,$wall) { function posted_date_widget($url,$uid,$wall) {
$o = ''; $o = '';
// "first day of " constructs were added in php 5.3
// TODO: emulate posted_dates() logic for prior releases
if(version_compare(PHP_VERSION, '5.3.0') < 0)
return $o;
// For former Facebook folks that left because of "timeline"
if($wall && intval(get_pconfig($uid,'system','no_wall_archive_widget')))
return $o;
$ret = posted_dates($uid,$wall); $ret = posted_dates($uid,$wall);
if(! count($ret)) if(! count($ret))
return $o; return $o;

Wyświetl plik

@ -6,9 +6,9 @@
#, fuzzy #, fuzzy
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: 3.0.1372\n" "Project-Id-Version: 3.0.1373\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-06-12 10:00-0700\n" "POT-Creation-Date: 2012-06-13 10:00-0700\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -130,9 +130,9 @@ msgstr ""
#: ../../mod/localtime.php:45 ../../mod/contacts.php:342 #: ../../mod/localtime.php:45 ../../mod/contacts.php:342
#: ../../mod/settings.php:555 ../../mod/settings.php:701 #: ../../mod/settings.php:555 ../../mod/settings.php:701
#: ../../mod/settings.php:762 ../../mod/settings.php:969 #: ../../mod/settings.php:762 ../../mod/settings.php:969
#: ../../mod/manage.php:109 ../../mod/group.php:85 ../../mod/message.php:216 #: ../../mod/group.php:85 ../../mod/message.php:216 ../../mod/admin.php:420
#: ../../mod/admin.php:420 ../../mod/admin.php:656 ../../mod/admin.php:792 #: ../../mod/admin.php:656 ../../mod/admin.php:792 ../../mod/admin.php:991
#: ../../mod/admin.php:991 ../../mod/admin.php:1078 ../../mod/profiles.php:554 #: ../../mod/admin.php:1078 ../../mod/profiles.php:554
#: ../../mod/invite.php:119 ../../addon/facebook/facebook.php:605 #: ../../mod/invite.php:119 ../../addon/facebook/facebook.php:605
#: ../../addon/snautofollow/snautofollow.php:64 #: ../../addon/snautofollow/snautofollow.php:64
#: ../../addon/yourls/yourls.php:76 ../../addon/ljpost/ljpost.php:93 #: ../../addon/yourls/yourls.php:76 ../../addon/ljpost/ljpost.php:93
@ -1236,7 +1236,7 @@ msgstr ""
msgid "Network" msgid "Network"
msgstr "" msgstr ""
#: ../../mod/notifications.php:85 ../../mod/network.php:266 #: ../../mod/notifications.php:85 ../../mod/network.php:285
msgid "Personal" msgid "Personal"
msgstr "" msgstr ""
@ -2308,67 +2308,67 @@ msgstr ""
msgid "Select an identity to manage: " msgid "Select an identity to manage: "
msgstr "" msgstr ""
#: ../../mod/network.php:67 #: ../../mod/network.php:82
msgid "Search Results For:" msgid "Search Results For:"
msgstr "" msgstr ""
#: ../../mod/network.php:106 ../../mod/search.php:16 #: ../../mod/network.php:122 ../../mod/search.php:16
msgid "Remove term" msgid "Remove term"
msgstr "" msgstr ""
#: ../../mod/network.php:115 ../../mod/search.php:13 #: ../../mod/network.php:131 ../../mod/search.php:13
msgid "Saved Searches" msgid "Saved Searches"
msgstr "" msgstr ""
#: ../../mod/network.php:116 ../../include/group.php:244 #: ../../mod/network.php:132 ../../include/group.php:244
msgid "add" msgid "add"
msgstr "" msgstr ""
#: ../../mod/network.php:253 #: ../../mod/network.php:272
msgid "Commented Order" msgid "Commented Order"
msgstr "" msgstr ""
#: ../../mod/network.php:256 #: ../../mod/network.php:275
msgid "Sort by Comment Date" msgid "Sort by Comment Date"
msgstr "" msgstr ""
#: ../../mod/network.php:259 #: ../../mod/network.php:278
msgid "Posted Order" msgid "Posted Order"
msgstr "" msgstr ""
#: ../../mod/network.php:262 #: ../../mod/network.php:281
msgid "Sort by Post Date" msgid "Sort by Post Date"
msgstr "" msgstr ""
#: ../../mod/network.php:269 #: ../../mod/network.php:288
msgid "Posts that mention or involve you" msgid "Posts that mention or involve you"
msgstr "" msgstr ""
#: ../../mod/network.php:272 #: ../../mod/network.php:291
msgid "New" msgid "New"
msgstr "" msgstr ""
#: ../../mod/network.php:275 #: ../../mod/network.php:294
msgid "Activity Stream - by date" msgid "Activity Stream - by date"
msgstr "" msgstr ""
#: ../../mod/network.php:278 #: ../../mod/network.php:297
msgid "Starred" msgid "Starred"
msgstr "" msgstr ""
#: ../../mod/network.php:281 #: ../../mod/network.php:300
msgid "Favourite Posts" msgid "Favourite Posts"
msgstr "" msgstr ""
#: ../../mod/network.php:284 #: ../../mod/network.php:303
msgid "Shared Links" msgid "Shared Links"
msgstr "" msgstr ""
#: ../../mod/network.php:287 #: ../../mod/network.php:306
msgid "Interesting Links" msgid "Interesting Links"
msgstr "" msgstr ""
#: ../../mod/network.php:354 #: ../../mod/network.php:373
#, php-format #, php-format
msgid "Warning: This group contains %s member from an insecure network." msgid "Warning: This group contains %s member from an insecure network."
msgid_plural "" msgid_plural ""
@ -2376,31 +2376,31 @@ msgid_plural ""
msgstr[0] "" msgstr[0] ""
msgstr[1] "" msgstr[1] ""
#: ../../mod/network.php:357 #: ../../mod/network.php:376
msgid "Private messages to this group are at risk of public disclosure." msgid "Private messages to this group are at risk of public disclosure."
msgstr "" msgstr ""
#: ../../mod/network.php:402 #: ../../mod/network.php:421
msgid "No such group" msgid "No such group"
msgstr "" msgstr ""
#: ../../mod/network.php:413 #: ../../mod/network.php:432
msgid "Group is empty" msgid "Group is empty"
msgstr "" msgstr ""
#: ../../mod/network.php:417 #: ../../mod/network.php:436
msgid "Group: " msgid "Group: "
msgstr "" msgstr ""
#: ../../mod/network.php:427 #: ../../mod/network.php:446
msgid "Contact: " msgid "Contact: "
msgstr "" msgstr ""
#: ../../mod/network.php:429 #: ../../mod/network.php:448
msgid "Private messages to this person are at risk of public disclosure." msgid "Private messages to this person are at risk of public disclosure."
msgstr "" msgstr ""
#: ../../mod/network.php:434 #: ../../mod/network.php:453
msgid "Invalid contact." msgid "Invalid contact."
msgstr "" msgstr ""
@ -3609,11 +3609,11 @@ msgstr ""
msgid "Requested profile is not available." msgid "Requested profile is not available."
msgstr "" msgstr ""
#: ../../mod/profile.php:139 ../../mod/display.php:75 #: ../../mod/profile.php:141 ../../mod/display.php:75
msgid "Access to this profile has been restricted." msgid "Access to this profile has been restricted."
msgstr "" msgstr ""
#: ../../mod/profile.php:164 #: ../../mod/profile.php:166
msgid "Tips for New Members" msgid "Tips for New Members"
msgstr "" msgstr ""
@ -7173,6 +7173,10 @@ msgstr ""
msgid "You have a new follower at " msgid "You have a new follower at "
msgstr "" msgstr ""
#: ../../include/items.php:3444
msgid "Archives"
msgstr ""
#: ../../include/bb2diaspora.php:102 ../../include/bb2diaspora.php:112 #: ../../include/bb2diaspora.php:102 ../../include/bb2diaspora.php:112
#: ../../include/bb2diaspora.php:113 #: ../../include/bb2diaspora.php:113
msgid "image/photo" msgid "image/photo"