Commit graph

2970 commits

Author SHA1 Message Date
Roland Häder
f4763f67ad [curweather] x() no longer used and more (#669)
* [curweather] Fixes/rewrites:
- Added `App` as type-hint for $a and no & (call-by-reference) anymore
- use empty() instead of deprecated x()
- opening curly brace belongs into new line after function/method declaration
- added a lot other curly braces for better readability
- added spaces and empty lines

* [curweather] CR request:
- added/removed spaces
- added missing line-feed after opening curly brace

* [curweather] Another new line-feed added

* [curweather] CR request:
- added/removed extra spaces
- removed trailing spaces
- nicely indented code block with `'$foo' => 'bar'`

* [curweather] CR request:
- removed stray space
2018-07-24 20:18:59 -04:00
Roland Häder
40f01ae601 [xmpp] Fixes: (#668)
- rewrote from deprecated x() to empty()
- added some empty lines for better readability
- used single quotes
2018-07-24 17:54:00 -04:00
Roland Häder
9d74809504 [bufffer] Cleanups: (#667)
- purged deprecated x() and used !empty() instead
- add App as type-hint where missing
- added curly braces and spaces for better readability/code convention
- open curly brace after method/function should be next line
2018-07-24 07:44:42 -04:00
Tobias Diekershoff
26800cddb3
Merge pull request #660 from annando/notices-again
And again some removed notices
2018-07-24 06:34:51 +02:00
Michael Vogel
429b9c9f4a
Merge branch 'develop' into notices-again 2018-07-24 04:19:48 +02:00
Michael Vogel
f33a6b44c5
Merge pull request #663 from MrPetovan/task/5410-add-missing-use-statement
[widgets] Add missing use statement after dbesc conversion
2018-07-24 03:51:08 +02:00
Roland Häder
95a98faeec [diaspora]: Ops, fixed parser error. Followup to #665 (#666) 2018-07-23 19:31:44 -04:00
Roland Häder
280e835481 [diaspora] Cleanups and type-hinting (#665)
* [diaspora] Fixes/cleanups:
- added curly braces/spaces for better readability
- don't use count() when you can use DBM::is_result()
- used proper type-hints `App` and `array`
- "imported" Friendica\App

* [diaspora]: Fixed parser error, ops

* [diaspora]:
- DBA::isResult() is now the new name (MrPetovan)
- added spaces for nice indending and better readability
- changed 4-spaces to tab
2018-07-23 19:04:06 -04:00
Roland Häder
ea4de38223 [mailstream]: Fixed logger level NORMAL -> INFO (#664) 2018-07-23 18:54:14 -04:00
Hypolite Petovan
c4c2514f3b [widgets] Add missing use statement after dbesc conversion 2018-07-23 18:46:16 -04:00
Andreas Neustifter
b058ac39df [curweather] Fix widget layout. [friendica#5473] (#662)
See issue [friendica#5473](https://github.com/friendica/friendica/issues/5473) and PR#653.
2018-07-23 17:06:09 -04:00
Michael Vogel
76a9630d40
Merge pull request #659 from MrPetovan/task/5410-remove-dbesc
Remove dbesc()
2018-07-23 21:51:20 +02:00
Hypolite Petovan
522e8e58c2 [multiple] Rename dbesc to DBA::escape 2018-07-23 15:35:22 -04:00
Michael Vogel
d9ec1ef80d
Merge pull request #658 from MrPetovan/task/5410-remove-dbm-class
Remove DBM class
2018-07-23 21:05:13 +02:00
Hypolite Petovan
f4ad0d3721 Rename DBA::is_result to DBA::isResult 2018-07-23 15:02:59 -04:00
Hypolite Petovan
332ea212b5 Rename DBM method calls to DBA method calls 2018-07-23 15:02:10 -04:00
Michael Vogel
8cdacf34b1
Merge pull request #657 from MrPetovan/task/5410-rename-database-methods
[advancedcontentfilter] Rename DBA::inArray to DBA::toArray
2018-07-23 15:19:05 +02:00
Roland Häder
a9da9db7eb [pumpio] Fixes/imports: (#661)
* [pumpio] Fixes/imports:
- added curly braces and spaces for better readability
- merged 2 `if()` blocks into one for lesser nested code blocks
- added type-hint `App` and `array` where applyable
- better "import" (`use` under PHP) classes and not reference them directly,
  reducing and improving readability

* [pumpio] Fixes:
- x() is deprecated, let's use !empty() instead
- added spaces for better readability

* [pumpio] Fixes:
- added missing App "imports" (thanks to MrPetovan)
- added type-hint array for $b
- added some spaces
2018-07-22 12:01:05 -04:00
Michael
a10a8361a7 This will work 2018-07-22 06:50:34 +00:00
Michael
1f9c353bae And again some removed notices 2018-07-22 06:41:30 +00:00
Roland Häder
c7764068cc [blogger] Cleanups: (#656)
* [blogger] Cleanups:
- used `use Friendica\App;`
- added type-hints for `App` and `array` where applyable
- removed extra space
- added other spaces

* [blogger]:
- ops, curly brace in new line in function/method declaration
- proper way for x() replacement
2018-07-20 22:21:06 -04:00
Hypolite Petovan
2d2167c146 [advancedcontentfilter] Rename DBA::inArray to DBA::toArray 2018-07-20 22:16:16 -04:00
Roland Häder
aaab504eb2 [blockem] Cleanups: (#655)
* [blockem] Cleanups:
- used `use Friendica\App;`
- used proper type-hints
- added spaces and curly braces for better readability

* [blockem] Moved open curly braces to new line

* [blockem]:
- changed checking condition (CR request)
- added/removed more spaces

* [blockem]: converted 4 spaces -> tab
2018-07-20 21:51:15 -04:00
Andreas Neustifter
81e57250e8 [curweather] Only shown notice about unavailable weather once per session. (#653)
* [curweather] Only shown notice about unavailable weather once per session.

* Fix even more whitespace.

As requested by @MrPetovan.

* [curweather] Reset session's curweather_notice_shown when weather available again.
2018-07-20 15:58:53 -04:00
Andreas Neustifter
aa1a542396 [js_upload] Better wording for mass-upload photos button. (#654) 2018-07-20 15:15:09 -04:00
Michael Vogel
4168bff3b9
Merge pull request #652 from MrPetovan/task/5410-rename-dba-to-DBA
[multiple] Rename Friendica\Database\dba to Friendica\Database\DBA
2018-07-20 19:45:26 +02:00
Hypolite Petovan
57505bdf82 [multiple] Rename Friendica\Database\dba to Friendica\Database\DBA 2018-07-20 08:20:48 -04:00
Tobias Diekershoff
9463696159
Merge pull request #650 from annando/post-type
We don't store the "type" parameter anymore
2018-07-20 12:53:12 +02:00
Tobias Diekershoff
a4c4bbc7b0
Merge pull request #651 from annando/notices
Fixes some notice
2018-07-20 12:49:55 +02:00
Michael
9616e770f3 Fixes some notice 2018-07-20 05:36:55 +00:00
Michael Vogel
18e43c0138
Merge pull request #649 from MrPetovan/task/5410-move-dba-to-src
[multiple] Move \dba to \Friendica\Database\dba
2018-07-20 06:50:49 +02:00
Hypolite Petovan
abc76a42ae [multiple] Move \dba to \Friendica\Database\dba
- Updated use statement lists
2018-07-19 22:18:02 -04:00
Tobias Diekershoff
a9aee26225
Merge pull request #648 from astifter/curweather_fix_header
Unify header level for weather widget.
2018-07-19 06:35:54 +02:00
Andreas Neustifter
3050aef871 Unify header level for weather widget. 2018-07-19 06:18:45 +02:00
Michael Vogel
3940618a4a
Merge pull request #633 from MrPetovan/task/4889-move-config-to-config
Move configuration to config/
2018-07-18 11:04:38 +02:00
Michael
cdd510909f We don't store the "type" parameter anymore 2018-07-18 05:49:41 +00:00
Tobias Diekershoff
4a442c995c
Merge pull request #647 from MrPetovan/task/add-mastodoncustomemojis-addon
[mastodoncustomenojis] Add shorter ttl for API call fail
2018-07-18 06:22:02 +02:00
Hypolite Petovan
ca1b27d10f [mastodoncustomenojis] Add shorter ttl for API call fail
- Add cache bypass through system.ignore_cache
2018-07-17 20:34:59 -04:00
Roland Häder
79e686b326 Use use keyword for "importing" classes/interfaces into your current (#646)
namespace (if any).

Signed-off-by: Roland Häder <roland@mxchange.org>
2018-07-17 01:12:52 -04:00
Roland Häder
e0145ca216 Fixes E_NOTICE for absent 'port' element (#645)
Signed-off-by: Roland Häder <roland@mxchange.org>
2018-07-16 19:40:09 -04:00
Michael Vogel
e74ccf35c9 Some notices had been removed / expiring of item related tables in twitter (#643)
* Some notices had been removed / expiring of item related tables in twitter

* Some more ...
2018-07-15 14:40:20 -04:00
Hypolite Petovan
ed8eb47b11 [testdrive] Fix Friendica official URL 2018-07-15 12:52:24 -04:00
Hypolite Petovan
425a5c99b4 [piwik] Fix indentation in README 2018-07-15 12:52:10 -04:00
Michael Vogel
abd52dbadd
Merge pull request #642 from MrPetovan/task/add-mastodoncustomemojis-addon
[mastodoncustomemojis] Add new addon
2018-07-15 17:41:58 +02:00
Michael Vogel
ec3037cc5f
Merge pull request #641 from MrPetovan/develop
[ImgBot] optimizes images
2018-07-14 23:52:44 +02:00
Hypolite Petovan
6e4d594c7d [mastodoncustomemojis] Add new addon 2018-07-14 06:08:36 -04:00
Hypolite Petovan
52e9cf4d59
Merge pull request #3 from MrPetovan/imgbot
[ImgBot] optimizes images
2018-07-14 02:29:20 -04:00
ImgBotApp
1ba2da2f31 [ImgBot] optimizes images
*Total -- 800.45kb -> 573.62kb (28.34%)

/dav/colorpicker/arrow.png -- 26.66kb -> 0.39kb (98.53%)
/jappixmini/jappix/img/wait/wait-medium.png -- 4.03kb -> 0.68kb (83.1%)
/xmpp/converse/css/images/bitcoin_qr_code.png -- 4.12kb -> 1.07kb (73.95%)
/dav/SabreDAV/lib/Sabre/DAV/Browser/assets/icons/principal.png -- 5.35kb -> 1.60kb (70.15%)
/sniper/70x45.jpg -- 15.15kb -> 5.14kb (66.03%)
/dav/SabreDAV/lib/Sabre/DAV/Browser/assets/icons/card.png -- 5.56kb -> 1.91kb (65.65%)
/dav/SabreDAV/lib/Sabre/DAV/Browser/assets/icons/file.png -- 2.77kb -> 1.03kb (62.99%)
/sniper/32x32.jpg -- 13.58kb -> 5.18kb (61.87%)
/dav/SabreDAV/lib/Sabre/DAV/Browser/assets/icons/addressbook.png -- 7.06kb -> 2.76kb (60.98%)
/sniper/60x60.jpg -- 19.07kb -> 8.73kb (54.24%)
/sniper/80x70.jpg -- 5.10kb -> 2.33kb (54.2%)
/dav/SabreDAV/lib/Sabre/DAV/Browser/assets/icons/collection.png -- 3.39kb -> 1.60kb (52.76%)
/dav/SabreDAV/lib/Sabre/DAV/Browser/assets/icons/parent.png -- 3.39kb -> 1.60kb (52.76%)
/sniper/125x125.jpg -- 30.95kb -> 14.77kb (52.28%)
/sniper/80x80hotshotsniper.jpg -- 23.20kb -> 11.29kb (51.33%)
/js_upload/file-uploader/tests/jquery-ui/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png -- 4.32kb -> 2.12kb (51.03%)
/smilies_adult/icons/drunk.gif -- 0.63kb -> 0.31kb (50.46%)
/sniper/100x100.jpg -- 29.77kb -> 15.36kb (48.41%)
/smilies_adult/icons/bong.gif -- 1.82kb -> 0.96kb (47%)
/xmpp/converse/css/images/user.png -- 1.66kb -> 0.93kb (44.08%)
/sniper/150x150.jpg -- 42.74kb -> 23.97kb (43.92%)
/dav/jqueryui/images/ui-bg_gloss-wave_35_f6a828_500x100.png -- 3.67kb -> 2.12kb (42.37%)
/dav/wdcal/css/images/calendar/load-bg.png -- 1.02kb -> 0.60kb (40.98%)
/sniper/180x135.jpg -- 10.22kb -> 6.09kb (40.45%)
/sniper/80x60.jpg -- 7.70kb -> 4.84kb (37.11%)
/ifttt/ifttt.png -- 7.55kb -> 4.79kb (36.51%)
/smiley_pack/icons/sad/crying.png -- 1.23kb -> 0.79kb (35.35%)
/sniper/75x57.jpg -- 8.10kb -> 5.25kb (35.17%)
/sniper/70x60.jpg -- 7.98kb -> 5.22kb (34.59%)
/dav/SabreDAV/lib/Sabre/DAV/Browser/assets/icons/calendar.png -- 4.29kb -> 2.82kb (34.09%)
/sniper/81x67.jpg -- 9.58kb -> 6.42kb (32.96%)
/dav/colorpicker/screenshot.png -- 2.03kb -> 1.38kb (32.19%)
/sniper/73x80.jpg -- 9.23kb -> 6.30kb (31.79%)
/sniper/100x80.jpg -- 12.23kb -> 8.37kb (31.54%)
/sniper/100x75.jpg -- 11.73kb -> 8.08kb (31.1%)
/sniper/120x90hotshotsniper.jpg -- 15.74kb -> 11.00kb (30.15%)
/sniper/140x90.jpg -- 17.28kb -> 12.29kb (28.83%)
/sniper/300x200.jpg -- 16.08kb -> 11.81kb (26.53%)
/sniper/300x300.jpg -- 19.07kb -> 14.30kb (25.03%)
/sniper/335x185.jpg -- 14.99kb -> 11.36kb (24.18%)
/dav/wdcal/css/images/calendar/bubble_combined.png -- 1.92kb -> 1.52kb (20.87%)
/sniper/250x180.jpg -- 38.65kb -> 31.69kb (18%)
/smileybutton/view/smoothly.png -- 0.95kb -> 0.79kb (16.79%)
/xmpp/converse/css/images/overlay.png -- 47.50kb -> 39.89kb (16.01%)
/smileybutton/view/vier.png -- 0.92kb -> 0.78kb (14.57%)
/smiley_pack/icons/food/cake.gif -- 0.65kb -> 0.56kb (13.77%)
/twitter/vendor/abraham/twitteroauth/tests/kitten.jpg -- 210.64kb -> 202.94kb (3.66%)
/smiley_pack/icons/fight/gangs.gif -- 1.71kb -> 1.65kb (2.98%)
/xmpp/converse/css/images/header.jpg -- 30.31kb -> 29.41kb (2.96%)
/statusnet/signinwithstatusnet.png -- 5.67kb -> 5.52kb (2.6%)
/smiley_pack/icons/respect/bravo.gif -- 0.74kb -> 0.72kb (2.5%)
/dav/wdcal/css/images/icons/mtgrsp-decline.gif -- 0.30kb -> 0.29kb (1.32%)
/smiley_pack/icons/fight/dead.gif -- 0.16kb -> 0.16kb (1.2%)
/catavatar/avatars/fur_5.png -- 6.58kb -> 6.50kb (1.08%)
/dav/wdcal/css/images/icons/appt.gif -- 0.56kb -> 0.56kb (1.04%)
/catavatar/avatars/fur_6.png -- 5.70kb -> 5.65kb (0.74%)
/smiley_pack/icons/fight/army.gif -- 2.95kb -> 2.93kb (0.69%)
/dav/wdcal/css/images/icons/mtgrsp-tent.gif -- 0.29kb -> 0.29kb (0.67%)
/smiley_pack/icons/devilangel/angel.gif -- 0.30kb -> 0.30kb (0.64%)
/smiley_pack/icons/confused/shrug.gif -- 0.18kb -> 0.18kb (0.54%)
/dav/wdcal/css/images/icons/calwrkwk.gif -- 0.38kb -> 0.37kb (0.52%)
/smiley_pack/icons/fight/crusader.gif -- 0.39kb -> 0.39kb (0.5%)
/catavatar/avatars/body_12.png -- 12.70kb -> 12.65kb (0.42%)
/smiley_pack/icons/happy/cloud9.gif -- 0.26kb -> 0.26kb (0.38%)
2018-07-14 02:28:43 -04:00
Hypolite Petovan
6c443aeaf0 Move addon-specific config to config/addon.ini.php 2018-07-11 22:56:52 -04:00
Hypolite Petovan
7ee6c3a20c [fortunate] Mark addon as unsupported 2018-07-10 08:47:57 -04:00