diff --git a/advancedcontentfilter/advancedcontentfilter.php b/advancedcontentfilter/advancedcontentfilter.php index ce5da9c3..3f036488 100644 --- a/advancedcontentfilter/advancedcontentfilter.php +++ b/advancedcontentfilter/advancedcontentfilter.php @@ -39,7 +39,6 @@ use Friendica\Content\Text\Markdown; use Friendica\Core\Addon; use Friendica\Core\Cache; use Friendica\Core\L10n; -use Friendica\Core\System; use Friendica\Database\DBA; use Friendica\Database\DBStructure; use Friendica\Model\Item; @@ -47,7 +46,6 @@ use Friendica\Model\Term; use Friendica\Module\Login; use Friendica\Network\HTTPException; use Friendica\Util\DateTimeFormat; -use Friendica\Util\Security; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ServerRequestInterface; use Symfony\Component\ExpressionLanguage; @@ -91,7 +89,7 @@ function advancedcontentfilter_dbstructure_definition(App $a, &$database) "expression" => ["type" => "mediumtext" , "not null" => "1", "comment" => "Expression text"], "serialized" => ["type" => "mediumtext" , "not null" => "1", "comment" => "Serialized parsed expression"], "active" => ["type" => "boolean" , "not null" => "1", "default" => "1", "comment" => "Whether the rule is active or not"], - "created" => ["type" => "datetime" , "not null" => "1", "default" => NULL_DATE, "comment" => "Creation date"], + "created" => ["type" => "datetime" , "not null" => "1", "default" => DBA::NULL_DATETIME, "comment" => "Creation date"], ], "indexes" => [ "PRIMARY" => ["id"], diff --git a/blackout/blackout.php b/blackout/blackout.php index 28e5567f..9b2d5b62 100644 --- a/blackout/blackout.php +++ b/blackout/blackout.php @@ -85,7 +85,7 @@ function blackout_redirect ($a, $b) { } if (( $date1 <= $now ) && ( $now <= $date2 )) { logger('redirecting user to blackout page'); - goaway($myurl); + System::externalRedirect($myurl); } } diff --git a/catavatar/catavatar.php b/catavatar/catavatar.php index 27e48b7a..b321ae33 100644 --- a/catavatar/catavatar.php +++ b/catavatar/catavatar.php @@ -141,7 +141,7 @@ function catavatar_lookup(App $a, &$b) $url = $a->getBaseURL() . '/catavatar/' . $user['uid']; switch($b['size']) { - case 175: $url .= "/4"; break; + case 300: $url .= "/4"; break; case 80: $url .= "/5"; break; case 47: $url .= "/6"; break; } @@ -245,7 +245,7 @@ function build_cat($seed = '', $size = 0) if ($size > 3 && $size < 7) { switch ($size) { case 4: - $size = 175; + $size = 300; break; case 5: $size = 80; diff --git a/forumdirectory/forumdirectory.php b/forumdirectory/forumdirectory.php index 0c2aa265..54818cdb 100644 --- a/forumdirectory/forumdirectory.php +++ b/forumdirectory/forumdirectory.php @@ -8,6 +8,7 @@ use Friendica\App; use Friendica\Content\Nav; +use Friendica\Content\Pager; use Friendica\Content\Widget; use Friendica\Core\Addon; use Friendica\Core\Config; @@ -45,8 +46,6 @@ function forumdirectory_init(App $a) { $a->page['htmlhead'] .= ''; - $a->set_pager_itemspage(60); - if (local_user()) { $a->page['aside'] .= Widget::findPeople(); } else { @@ -107,19 +106,22 @@ function forumdirectory_content(App $a) $publish = Config::get('system', 'publish_all') ? '' : " AND `publish` = 1 "; + $total = 0; $r = q("SELECT COUNT(*) AS `total` FROM `profile` LEFT JOIN `user` ON `user`.`uid` = `profile`.`uid`" . " WHERE `is-default` = 1 $publish AND `user`.`blocked` = 0 AND `page-flags` = 2 $sql_extra "); if (DBA::isResult($r)) { - $a->set_pager_total($r[0]['total']); + $total = $r[0]['total']; } + $pager = new Pager($a->query_string, 60); + $order = " ORDER BY `name` ASC "; $r = q("SELECT `profile`.*, `profile`.`uid` AS `profile_uid`, `user`.`nickname`, `user`.`timezone` , `user`.`page-flags`" . " FROM `profile` LEFT JOIN `user` ON `user`.`uid` = `profile`.`uid` WHERE `is-default` = 1 $publish" . " AND `user`.`blocked` = 0 AND `page-flags` = 2 $sql_extra $order LIMIT %d , %d ", - intval($a->pager['start']), - intval($a->pager['itemspage']) + $pager->getStart(), + $pager->getItemsPerPage() ); if (DBA::isResult($r)) { @@ -208,7 +210,7 @@ function forumdirectory_content(App $a) } $o .= "
\r\n"; - $o .= paginate($a); + $o .= $pager->renderFull($total); } else { info(L10n::t("No entries \x28some entries may be hidden\x29.") . EOL); } diff --git a/impressum/impressum.php b/impressum/impressum.php index 74d87180..90775116 100644 --- a/impressum/impressum.php +++ b/impressum/impressum.php @@ -31,7 +31,7 @@ function impressum_module() { } function impressum_content() { $a = get_app(); - goaway('friendica/'); + $a->internalRedirect('friendica/'); } function obfuscate_email ($s) { diff --git a/notifyall/notifyall.php b/notifyall/notifyall.php index 824e306b..852972c3 100644 --- a/notifyall/notifyall.php +++ b/notifyall/notifyall.php @@ -93,7 +93,7 @@ function notifyall_post(App $a) } notice(L10n::t('Emails sent')); - goaway('admin'); + $a->internalRedirect('admin'); } function notifyall_content(&$a) diff --git a/public_server/public_server.php b/public_server/public_server.php index 4d552951..2b36f3f6 100644 --- a/public_server/public_server.php +++ b/public_server/public_server.php @@ -6,13 +6,13 @@ * Author: Keith Fernie