Hypolite Petovan
56ee734b00
Cleanup /format pre-move
3 years ago
Alexandre Alapetite
5b80a1fcaa
mod photos compatibility only_full_group_by
Related to https://github.com/friendica/friendica/pull/3323
3 years ago
Alexandre Alapetite
1058b28cea
MySQL ANY_VALUE with fallback to MIN
https://github.com/friendica/friendica/issues/3322
3 years ago
Alexandre Alapetite
74b6d09e89
Fix GROUP BY in acl_selector, api, notifier, photos, messages
https://github.com/friendica/friendica/issues/3322
3 years ago
rebeka-catalina
554704e6b9
Added a whitespace between comma and t()
3 years ago
Roland Haeder
60552260e1
Continued with CR:
- added spaces as requested
- removed parentheses from include/require calls as they are no functions
Signed-off-by: Roland Haeder <roland@mxchange.org>
3 years ago
Roland Haeder
d4e67338d8
space-time contines ...
Signed-off-by: Roland Haeder <roland@mxchange.org>
3 years ago
Roland Haeder
192f6d7cf4
merged 2 if() into one three times
Signed-off-by: Roland Haeder <roland@mxchange.org>
3 years ago
Roland Haeder
de5125a4c7
merged 2 if() into one as requested by CR
Signed-off-by: Roland Haeder <roland@mxchange.org>
3 years ago
Roland Haeder
2a480df6fa
added spaces + removed parentheses (include/require are no functions)
Signed-off-by: Roland Haeder <roland@mxchange.org>
3 years ago
Roland Haeder
6b8f581897
added spaces
Signed-off-by: Roland Haeder <roland@mxchange.org>
3 years ago
Roland Haeder
f998438d43
removed old-lost code by CR request
Signed-off-by: Roland Haeder <roland@mxchange.org>
3 years ago
Roland Haeder
d091759888
space to the rescue ... ;-) CR request
Signed-off-by: Roland Haeder <roland@mxchange.org>
3 years ago
Roland Haeder
0e6b009425
fixed another parser error, opps
Signed-off-by: Roland Haeder <roland@mxchange.org>
3 years ago
Roland Haeder
fccdc63964
Opps, fixed parser error. indending was confusing here
+ added much more curly braces
Signed-off-by: Roland Haeder <roland@mxchange.org>
3 years ago
Roland Haeder
73ee285212
rewrote for() loop to foreach() + added curly braces/spaces
Signed-off-by: Roland Haeder <roland@mxchange.org>
3 years ago
Hypolite Petovan
7b352f3f74
Revert "Coding convention applied - part 1"
3 years ago
Roland Häder
d529125c8e
added spaces + some curly braces + some usage of dbm::is_result()
Signed-off-by: Roland Häder <roland@mxchange.org>
4 years ago
Roland Häder
0cd241bcbe
added spaces + some curly braces + some usage of dbm::is_result()
Signed-off-by: Roland Häder <roland@mxchange.org>
4 years ago
Michael
7e846ba7ac
Hide the calculation for "previous" and "next" behind a setting
4 years ago
Michael
fd5f151a72
New function to detect heavily used indexes
4 years ago
Hypolite Petovan
f92918f471
Normalize App parameter declaration (mod folder, 2 out of 3)
4 years ago
Hypolite Petovan
daa8e4f901
Cleaning up, actual changes are in the next commits
- Formatting
- Trailing spaces
- Extraneous blank lines
- Large comments
4 years ago
Michael
c2543f918b
Last minutes changes
4 years ago
Michael
1b48799f08
Don't do queries if not needed
4 years ago
rabuzarus
a6d7ad0755
Update cache on photo edit only when album name has changed
4 years ago
rabuzarus
08fb35838c
Update the photo albums cache on upload, album deletion or renaming
4 years ago
Roland Haeder
d6e57f0348
Continued with coding convention:
- added curly braces around conditional code blocks
- added space between if/foreach/... and brace
- rewrote a code block so if dbm::is_result() fails it will abort, else the id
is fetched from INSERT statement
- made some SQL keywords upper-cased and added back-ticks to columns/table names
Signed-off-by: Roland Haeder <roland@mxchange.org>
4 years ago
Roland Haeder
52f14ffa5f
Continued with coding convention:
- added curly braces around conditional code blocks
- added space between if/foreach/... and brace
- rewrote a code block so if dbm::is_result() fails it will abort, else the id
is fetched from INSERT statement
- made some SQL keywords upper-cased and added back-ticks to columns/table names
Signed-off-by: Roland Haeder <roland@mxchange.org>
4 years ago
Roland Haeder
6e44acfed6
Continued with coding convention:
- added curly braces around conditional code blocks
- added space between if/foreach/... and brace
- rewrote a code block so if dbm::is_result() fails it will abort, else the id
is fetched from INSERT statement
- made some SQL keywords upper-cased and added back-ticks to columns/table names
Signed-off-by: Roland Haeder <roland@mxchange.org>
4 years ago
Michael
4aafbb09a5
The object type "photo" is deprecated and was replaced by "image"
Signed-off-by: Roland Häder <roland@mxchange.org>
Conflicts:
include/like.php
mod/photos.php
mod/subthread.php
4 years ago
Roland Häder
c0cc65304b
converted more to dbm::is_result() + added braces/space
Signed-off-by: Roland Häder <roland@mxchange.org>
4 years ago
Roland Häder
51716957b2
converted more to dbm::is_result() + added braces/space
Signed-off-by: Roland Häder <roland@mxchange.org>
4 years ago
Roland Häder
4dce3d8224
changed to this:
---------------------
function bla (App &$a) {
$a->bla = 'stuff';
}
---------------------
Signed-off-by: Roland Häder <roland@mxchange.org>
4 years ago
Roland Häder
e1f3661645
*much* more usage of App::get_baseurl() instead of $a->get_baseurl() (coding convention applied)
Signed-off-by: Roland Häder <roland@mxchange.org>
4 years ago
Michael
6e46987515
The object type "photo" is deprecated and was replaced by "image"
4 years ago
Roland Häder
884f44ce94
*much* more usage of App::get_baseurl() instead of $a->get_baseurl() (coding convention applied)
Signed-off-by: Roland Häder <roland@mxchange.org>
4 years ago
Roland Häder
46d383369c
Cleanup for #3010 - added spaces, thanks to @annando .
Signed-off-by: Roland Häder <roland@mxchange.org>
4 years ago
Roland Häder
6a8a36f12d
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>
4 years ago
rabuzarus
9878974e1f
fix photos page permissions
4 years ago
rabuzarus
5459b00499
cache: serialize the cache content directly in the cache class
4 years ago
Michael Vogel
8cab3b5592
More transactions, more queries on uncommitted data
4 years ago
Michael Vogel
ee5ada6991
We now use memcache if configured and installed.
4 years ago
Michael Vogel
b429b85680
CSR changes, split dbclean in separate processes if worker is active
4 years ago
Michael Vogel
501c45def5
Some more improved queries
4 years ago
Michael Vogel
60a0235af0
The account type is now read and displayed
4 years ago
rabuzarus
3921113e5c
photos - include paginate into the templates - provide a photo_album.tpl for frio
4 years ago
Michael Vogel
668da905e2
"proc_run" is now called with priority.
4 years ago
Michael Vogel
f27bc00464
Remove obsolote functions
4 years ago
rabuzarus
255405c8f3
photos view: fix js error - forgot to delete this testing stuff
4 years ago