]>
git.mxchange.org Git - friendica.git/log
Roland Häder [Thu, 15 Dec 2016 08:57:55 +0000 (09:57 +0100)]
Continued with #3010:
- more reverts of $a->get_baseurl()
- you always do: function foo (&$a), please read my TODO why it is not so good.
- for now I have fixed this inconsistency (compared to other method signatures)
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Thu, 15 Dec 2016 08:52:15 +0000 (09:52 +0100)]
Garrr ...
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Thu, 15 Dec 2016 08:51:06 +0000 (09:51 +0100)]
Opps, tpzo found ...
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Thu, 15 Dec 2016 08:49:00 +0000 (09:49 +0100)]
And more reverts:
- $a->get_baseurl() -> App::get_baseurl()
- was_recently_delayed() (entirely)
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Thu, 15 Dec 2016 08:32:32 +0000 (09:32 +0100)]
more reverts ...
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Thu, 15 Dec 2016 08:22:38 +0000 (09:22 +0100)]
Also reverted these + added spaces for nicer appearance.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Haeder [Wed, 14 Dec 2016 19:50:39 +0000 (20:50 +0100)]
fixed SQL writing: keywords upper-case, column/table names in back-ticks. #3010
Signed-off-by: Roland Haeder <roland@mxchange.org>
Roland Häder [Wed, 14 Dec 2016 16:41:28 +0000 (17:41 +0100)]
reverted change (which duplicated above query), thanks to @annano to point this out. #3010
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Wed, 14 Dec 2016 16:28:18 +0000 (17:28 +0100)]
3 slashes for Doxygen, 2 are enough for PHP ... :-(
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Wed, 14 Dec 2016 15:59:35 +0000 (16:59 +0100)]
Continued with #3010:
- removed added debug messages (maybe they will come back in accordance to
code-style guidelines?)
- converted $a->get_baseurl() back to App::get_baseurl()
- reverted back other code I have touched/merged as this was double:
(substr($url, 0, 4) !== 'http') on $url = 'https://bla'; will be FALSE
(means found http at start), too.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Wed, 14 Dec 2016 15:43:03 +0000 (16:43 +0100)]
No more needed ... util/typo.php is there.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Wed, 14 Dec 2016 15:39:39 +0000 (16:39 +0100)]
Also removed this, seems to come in from wrong merging? #3010 Thanks to @annando
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Wed, 14 Dec 2016 15:36:32 +0000 (16:36 +0100)]
Opps, this has vanished by accident, thanks to @annando
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Wed, 14 Dec 2016 11:51:20 +0000 (12:51 +0100)]
Use [] instead of test.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Wed, 14 Dec 2016 11:45:11 +0000 (12:45 +0100)]
added lint.sh which needs to be executed like this:
$ ./util/lint.sh
No parameters needed. It will use "php -l" (current interpreter) for checking
for syntax errors in all PHP scripts.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Wed, 14 Dec 2016 11:03:02 +0000 (12:03 +0100)]
More dbm::is_result() instead of count()
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Wed, 14 Dec 2016 10:55:12 +0000 (11:55 +0100)]
Maybe no longer needed: converted $a->get_baseurl() to App::get_baseurl(). #3010
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Wed, 14 Dec 2016 09:02:39 +0000 (10:02 +0100)]
Opps, no && and AND in same line (confusing, thanks to @annando)
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Wed, 14 Dec 2016 08:58:27 +0000 (09:58 +0100)]
removed own debug lines (no more needed).
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Wed, 14 Dec 2016 08:56:27 +0000 (09:56 +0100)]
added extra spaces to make it look nice. #3010
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Wed, 14 Dec 2016 08:49:52 +0000 (09:49 +0100)]
Fixes for #3010:
- used static call, still App::get_baseurl() wraps it into an object-referencing
call which seems to be a bit redundant?
- added spaces around dot (see one line below)
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Wed, 14 Dec 2016 08:42:36 +0000 (09:42 +0100)]
Cleanup for #3010 - added spaces, thanks to @annando .
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Wed, 14 Dec 2016 08:42:28 +0000 (09:42 +0100)]
Cleanup for #3010 - added spaces, thanks to @annando .
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Wed, 14 Dec 2016 08:41:33 +0000 (09:41 +0100)]
Cleanup for #3010 - added spaces, thanks to @annando .
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Wed, 14 Dec 2016 08:34:13 +0000 (09:34 +0100)]
Fixes for #3010 - removed baseurl as this is no longer done, still there are 89
left in templates.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Wed, 14 Dec 2016 08:31:27 +0000 (09:31 +0100)]
Cleanup for #3010 - removed all redundant lines found by @rabuzarus
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Tue, 13 Dec 2016 14:24:44 +0000 (15:24 +0100)]
import dbm here to avoid adding everywhere the namespace (if later changed,
only here it needs change, cool ha? ;-)
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Tue, 13 Dec 2016 13:53:57 +0000 (14:53 +0100)]
Nope, get_basepath() should be static, then also mark it as static (in signature).
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Tue, 13 Dec 2016 10:00:44 +0000 (11:00 +0100)]
Merge branch 'rewrites/dbm_is_result' of github.com:Quix0r/friendica into rewrites/dbm_is_result
Signed-off-by: Roland Häder <roland@mxchange.org>
Conflicts:
include/Photo.php
include/api.php
include/cache.php
include/dbstructure.php
include/enotify.php
include/items.php
include/onepoll.php
include/queue_fn.php
include/session.php
include/text.php
mod/contacts.php
mod/dfrn_request.php
mod/display.php
mod/events.php
mod/item.php
mod/message.php
mod/msearch.php
mod/photos.php
mod/poco.php
mod/profile.php
mod/proxy.php
mod/videos.php
update.php
view/theme/diabook/theme.php
view/theme/vier/theme.php
Roland Häder [Tue, 13 Dec 2016 09:44:13 +0000 (10:44 +0100)]
More usage of dbm::is_result($r) instead of count($r):
- count() returns very different results and never a boolean (not even false on
error condition).
- therefore you should NOT use it in boolean expressions. This still *can* be
done in PHP because of its lazyness. But it is discouraged if it comes to
more clean code.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Tue, 13 Dec 2016 09:16:36 +0000 (10:16 +0100)]
Some rewrites:
- max_proccesses_reach() and maxload_reached() (why no _ behind max?) are called
both way, static and with object reference.
- this is strongly discouraged and should be avoided as its support (in PHP) may
be dropped in future releases.
- used $a = get_app(); to encapsulate code (even when the function does
currently the same, it may be changed later)
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Tue, 13 Dec 2016 09:01:56 +0000 (10:01 +0100)]
Opps, no need for this.
Signed-off-by: Roland Häder <roland@mxchange.org>
Roland Häder [Tue, 13 Dec 2016 08:59:43 +0000 (09:59 +0100)]
Merge remote-tracking branch 'upstream/develop' into develop
Also removed <<<<< as this interfers (a bit) with searching for merge conflicts
with a more simplier editor.
Signed-off-by: Roland Häder <roland@mxchange.org>
Conflicts:
mod/ping.php
view/lang/fr/messages.po
view/lang/fr/strings.php
Tobias Diekershoff [Mon, 12 Dec 2016 06:54:59 +0000 (07:54 +0100)]
Merge pull request #3009 from annando/issue-2999
Issue 2999: Better Mastodon handling
Michael [Mon, 12 Dec 2016 06:51:08 +0000 (06:51 +0000)]
Restore empty line
Michael [Mon, 12 Dec 2016 06:46:02 +0000 (06:46 +0000)]
Issue 2999: Better Mastodon handling
Tobias Diekershoff [Mon, 12 Dec 2016 06:04:16 +0000 (07:04 +0100)]
Merge pull request #3007 from annando/1607-performance
Some more performance stuff
rabuzarus [Sun, 11 Dec 2016 19:01:09 +0000 (20:01 +0100)]
Merge pull request #3008 from annando/1612-probe-logging
Issue 2835: Some logging to detect possible problems with the probing
Michael [Sun, 11 Dec 2016 18:39:39 +0000 (18:39 +0000)]
Some logging to detect possible problems with the probing
Michael [Sun, 11 Dec 2016 17:37:12 +0000 (17:37 +0000)]
String is no integer
Michael [Sun, 11 Dec 2016 07:09:48 +0000 (07:09 +0000)]
Avoid SQL errors
Michael Vogel [Sat, 10 Dec 2016 23:22:20 +0000 (00:22 +0100)]
Merge pull request #3006 from rabuzarus/20161210_-_frio_submit_fix
frio: delete unneeded button attributes in search forms
rabuzarus [Sat, 10 Dec 2016 20:25:40 +0000 (21:25 +0100)]
frio: delete unneeded button attributes in search forms
Michael [Sat, 10 Dec 2016 12:28:49 +0000 (12:28 +0000)]
Code bautification
Michael [Sat, 10 Dec 2016 12:21:16 +0000 (12:21 +0000)]
Some more ...
Michael [Sat, 10 Dec 2016 12:19:57 +0000 (12:19 +0000)]
Redo the index changes for testing purposes
Michael [Sat, 10 Dec 2016 12:18:11 +0000 (12:18 +0000)]
Merge remote-tracking branch 'upstream/develop' into 1607-performance
Michael Vogel [Sat, 10 Dec 2016 07:02:19 +0000 (08:02 +0100)]
Merge pull request #3004 from tobiasd/
20161210 -2932followup
add allowed protocols during installation
Tobias Diekershoff [Sat, 10 Dec 2016 06:16:16 +0000 (07:16 +0100)]
move that option up, as the admin panel has no control over it ATM
Tobias Diekershoff [Sat, 10 Dec 2016 06:05:35 +0000 (07:05 +0100)]
add the kickstart allowed protocols to htconfig.tpl. 2932 follow-up
Tobias Diekershoff [Sat, 10 Dec 2016 06:04:39 +0000 (07:04 +0100)]
make vier also the default from the emergency htconfig file
Michael Vogel [Fri, 9 Dec 2016 17:13:27 +0000 (18:13 +0100)]
Merge pull request #3000 from tobiasd/
20161208 -convert
only convert tables in friendica DB
Tobias Diekershoff [Fri, 9 Dec 2016 17:11:27 +0000 (18:11 +0100)]
Michael may keep the typo
Tobias Diekershoff [Fri, 9 Dec 2016 15:43:40 +0000 (16:43 +0100)]
use %placeholder% instead of Friendica
Michael Vogel [Fri, 9 Dec 2016 14:54:11 +0000 (15:54 +0100)]
Merge pull request #2932 from Hypolite/issue/missing-private-image-src
Fix Friendica private image URL replacing
Michael Vogel [Fri, 9 Dec 2016 14:53:20 +0000 (15:53 +0100)]
Merge pull request #3003 from tobiasd/
20161209 -lang
DE, ES update to the translation
rabuzarus [Fri, 9 Dec 2016 12:43:21 +0000 (13:43 +0100)]
Merge pull request #3002 from tobiasd/
20161209 -docissues
in docs there was a wrong link to the issue tracker
Tobias Diekershoff [Fri, 9 Dec 2016 11:36:28 +0000 (12:36 +0100)]
DE, ES update to the translation
Tobias Diekershoff [Fri, 9 Dec 2016 10:42:28 +0000 (11:42 +0100)]
Merge pull request #3001 from annando/1612-store-gcontact
The gcontact-id and the object field can now be stored with item_post
Tobias Diekershoff [Fri, 9 Dec 2016 10:38:08 +0000 (11:38 +0100)]
in docs there was a wrong link to the issue tracker
Michael [Fri, 9 Dec 2016 09:57:02 +0000 (09:57 +0000)]
The gcontact-id and the object field can now be stored with item_post
Tobias Diekershoff [Thu, 8 Dec 2016 20:11:47 +0000 (21:11 +0100)]
Merge pull request #2990 from Hypolite/fix-diaspora-medium-link
Improve diaspora2bb autolinker
Tobias Diekershoff [Thu, 8 Dec 2016 19:29:06 +0000 (20:29 +0100)]
only convert tables in friendica DB
Hypolite Petovan [Thu, 8 Dec 2016 04:18:10 +0000 (23:18 -0500)]
Adding default protocols on missing config value for backward compatibility
Hypolite Petovan [Thu, 8 Dec 2016 04:15:46 +0000 (23:15 -0500)]
Merge remote-tracking branch 'refs/remotes/origin/develop' into issue/missing-private-image-src
# Conflicts:
# doc/htconfig.md
Hypolite Petovan [Thu, 8 Dec 2016 04:11:53 +0000 (23:11 -0500)]
Standards
Tobias Diekershoff [Tue, 6 Dec 2016 21:05:08 +0000 (22:05 +0100)]
Merge pull request #2996 from rabuzarus/20161206_-_help_doc_move_content
docu docs: some polishing
Michael Vogel [Tue, 6 Dec 2016 21:01:29 +0000 (22:01 +0100)]
Merge pull request #2994 from tobiasd/
20161206 -frontendworker
add frontend worker to the admin panel and regen master messages.po file
Tobias Diekershoff [Tue, 6 Dec 2016 20:47:37 +0000 (21:47 +0100)]
show some of the worker options only when the worker process is active
rabuzarus [Tue, 6 Dec 2016 14:03:57 +0000 (15:03 +0100)]
docu docs: some polishing
Tobias Diekershoff [Tue, 6 Dec 2016 13:19:00 +0000 (14:19 +0100)]
Merge pull request #2995 from rabuzarus/20161206_-_frio_nav_bar_link_change
frio: change some link behavior of user menu in the nav bar
rabuzarus [Tue, 6 Dec 2016 13:11:22 +0000 (14:11 +0100)]
frio: change some link behavior of user menu in the nav bar
Tobias Diekershoff [Tue, 6 Dec 2016 07:44:59 +0000 (08:44 +0100)]
add frontend worker to the admin panel and regen master messages.po file
Hypolite Petovan [Tue, 6 Dec 2016 03:48:02 +0000 (22:48 -0500)]
Formatting
Hypolite Petovan [Tue, 6 Dec 2016 03:47:52 +0000 (22:47 -0500)]
Fixs edge case where single stars on succeeding lines are wrongly turned into multi-line <em>
Hypolite Petovan [Tue, 6 Dec 2016 03:46:51 +0000 (22:46 -0500)]
Add <br> for each carriage return
Fixes #2993
Hypolite Petovan [Mon, 5 Dec 2016 02:33:29 +0000 (21:33 -0500)]
src and href attributes sanitization touchups
- Use Config::get
- Add default to config call
- Add always allowed protocol to href
- Remove relative root URLs from allowed forms
Hypolite Petovan [Mon, 5 Dec 2016 02:31:28 +0000 (21:31 -0500)]
Revert adding a leading slash to redir links
Michael Vogel [Sun, 4 Dec 2016 23:32:15 +0000 (00:32 +0100)]
Merge pull request #2989 from tobiasd/
20161203 -de
Update DE translation THX Rabuzarus
Tobias Diekershoff [Sun, 4 Dec 2016 16:49:15 +0000 (17:49 +0100)]
Merge pull request #2991 from rabuzarus/20161204_-_allowfullscreen
Bugfix: Fix full screen for embedded videos
Tobias Diekershoff [Sun, 4 Dec 2016 16:48:46 +0000 (17:48 +0100)]
Merge pull request #2992 from rabuzarus/20161204_-_fix_cache_call_in_identity.php
Bugfix: cached data doesn't need to get unserialized anymore
rabuzarus [Sun, 4 Dec 2016 14:15:23 +0000 (15:15 +0100)]
Bugfix: cached data doesn't need to get unserialized anymore
rabuzarus [Sun, 4 Dec 2016 13:55:57 +0000 (14:55 +0100)]
Bugfix: Fix full screen for embedded videos
Hypolite Petovan [Sun, 4 Dec 2016 03:04:13 +0000 (22:04 -0500)]
Improve diaspora2bb autolinker for URLs
- Add @ support for URLs (Medium URLs)
- Exclude trailing commas from autolinked URLs, likely to be normal text
- Formatting
Hypolite Petovan [Sat, 3 Dec 2016 19:19:57 +0000 (14:19 -0500)]
Add protocol whitelist for href/src attributes
- Add strict URL checker for src attributes
- Add protocol whitelist for href attributes
- Add error styling if URL fails to pass filter
- Add doc for new htconfig value
- Add emphasis to config key names in htconfig doc
Hypolite Petovan [Sat, 3 Dec 2016 15:39:06 +0000 (10:39 -0500)]
Revert adding baseurl to private image URL
Hypolite Petovan [Sat, 3 Dec 2016 15:34:48 +0000 (10:34 -0500)]
Merge branch 'develop' into issue/missing-private-image-src
Tobias Diekershoff [Sat, 3 Dec 2016 09:09:40 +0000 (10:09 +0100)]
Update DE translation THX Rabuzarus
Tobias Diekershoff [Fri, 2 Dec 2016 19:20:20 +0000 (20:20 +0100)]
Merge pull request #2988 from rabuzarus/20161202_-_embed_text_complete
autocomplete: add [embed] tag to tag autocomplete and to docu docs
rabuzarus [Fri, 2 Dec 2016 18:39:35 +0000 (19:39 +0100)]
autocomplete: add [embed] tag to tag autocomplete and to docu docs
Tobias Diekershoff [Fri, 2 Dec 2016 16:14:10 +0000 (17:14 +0100)]
Merge pull request #2986 from annando/1612-spool
Spool items that weren't stored before
Michael [Fri, 2 Dec 2016 09:54:34 +0000 (09:54 +0000)]
Merge remote-tracking branch 'upstream/develop' into 1612-spool
Michael [Thu, 1 Dec 2016 22:52:35 +0000 (22:52 +0000)]
Much more standards
Michael [Thu, 1 Dec 2016 22:50:07 +0000 (22:50 +0000)]
Standards ...
Michael [Thu, 1 Dec 2016 21:11:52 +0000 (21:11 +0000)]
File was missing
Michael [Thu, 1 Dec 2016 20:53:18 +0000 (20:53 +0000)]
Store spooled data
Tobias Diekershoff [Thu, 1 Dec 2016 19:37:45 +0000 (20:37 +0100)]
Merge pull request #2985 from annando/1612-ping
Little improvements to the queries in ping.php
Michael [Thu, 1 Dec 2016 13:58:47 +0000 (13:58 +0000)]
Merge branch '1612-spool' of github.com:annando/friendica into 1612-spool
Michael [Thu, 1 Dec 2016 13:50:26 +0000 (13:50 +0000)]
Spool items that couldn't be stored
Michael [Thu, 1 Dec 2016 13:44:30 +0000 (13:44 +0000)]
Little improvements to the queries in ping.php