if (!defined('LACONICA')) { exit(1); }
require_once(INSTALLDIR.'/lib/searchaction.php');
-define(NOTICES_PER_PAGE, 20);
+define('NOTICES_PER_PAGE', 20);
# XXX common parent for people and content search?
function common_fancy_url($action, $args=NULL) {
switch (strtolower($action)) {
case 'public':
- if ($args && $args['page']) {
+ if ($args && isset($args['page'])) {
return common_path('?page=' . $args['page']);
} else {
return common_path('');
function common_save_replies($notice) {
# Alternative reply format
+ $tname = false;
if (preg_match('/^T ([A-Z0-9]{1,64}) /', $notice->content, $match)) {
$tname = $match[1];
}