Fix byref errors
parent
4d8a8f22f8
commit
23ccf41ebd
|
@ -33,7 +33,7 @@ class TimelineQuery {
|
||||||
*/
|
*/
|
||||||
public function getDays(
|
public function getDays(
|
||||||
IConfig &$config,
|
IConfig &$config,
|
||||||
string &$user): array {
|
string $user): array {
|
||||||
|
|
||||||
$sql = 'SELECT `*PREFIX*memories`.`dayid`, COUNT(`*PREFIX*memories`.`fileid`) AS count
|
$sql = 'SELECT `*PREFIX*memories`.`dayid`, COUNT(`*PREFIX*memories`.`fileid`) AS count
|
||||||
FROM `*PREFIX*memories`
|
FROM `*PREFIX*memories`
|
||||||
|
@ -92,8 +92,8 @@ class TimelineQuery {
|
||||||
*/
|
*/
|
||||||
public function getDay(
|
public function getDay(
|
||||||
IConfig &$config,
|
IConfig &$config,
|
||||||
string &$user,
|
string $user,
|
||||||
int &$dayId): array {
|
int $dayId): array {
|
||||||
|
|
||||||
$sql = 'SELECT `*PREFIX*memories`.`fileid`, *PREFIX*filecache.etag, `*PREFIX*memories`.`isvideo`
|
$sql = 'SELECT `*PREFIX*memories`.`fileid`, *PREFIX*filecache.etag, `*PREFIX*memories`.`isvideo`
|
||||||
FROM *PREFIX*memories
|
FROM *PREFIX*memories
|
||||||
|
|
|
@ -12,7 +12,7 @@ class Util {
|
||||||
* @param IConfig $config
|
* @param IConfig $config
|
||||||
* @param string $userId
|
* @param string $userId
|
||||||
*/
|
*/
|
||||||
public static function getPhotosPath(IConfig &$config, string &$userId) {
|
public static function getPhotosPath(IConfig &$config, string $userId) {
|
||||||
$p = $config->getUserValue($userId, Application::APPNAME, 'timelinePath', '');
|
$p = $config->getUserValue($userId, Application::APPNAME, 'timelinePath', '');
|
||||||
if (empty($p)) {
|
if (empty($p)) {
|
||||||
return '/Photos/';
|
return '/Photos/';
|
||||||
|
|
Loading…
Reference in New Issue