require_once INSTALLDIR.'/lib/facebookutil.php';
require_once INSTALLDIR.'/lib/noticeform.php';
-
class FacebookAction extends Action
{
}
-
// Make this into a widget later
function showLocalNav()
{
$this->endHTML();
}
-
function showInstructions()
{
$this->elementEnd('div');
}
-
function showLoginForm($msg = null)
{
}
-
function updateProfileBox($notice)
{
$this->xw->openURI('php://output');
}
-
/**
* Generate pagination links
*
} else {
$content_shortened = common_shorten_links($content);
- if (mb_strlen($content_shortened) > 140) {
- $this->showPage(_('That\'s too long. Max notice size is 140 chars.'));
+ if (Notice::contentTooLong($content_shortened)) {
+ $this->showPage(sprintf(_('That\'s too long. Max notice size is %d chars.'),
+ Notice::maxContent()));
return;
}
}