From 3b14b7901c65144835d74b712279d0492c267c0c Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sat, 17 May 2008 11:47:01 -0400 Subject: fixes to make it all lint Ran everything through php -l, found out that it didn't compile. So: fixed the am-I-running-in-Laconica check at the top of each file. Some syntax fixes in shownotice, showstream, common. darcs-hash:20080517154701-84dde-8d38da89c5b9cb3b40704adb04a4de880c204181.gz --- actions/all.php | 2 +- actions/avatar.php | 2 +- actions/login.php | 2 +- actions/logout.php | 2 +- actions/newnotice.php | 2 +- actions/password.php | 2 +- actions/profilesettings.php | 2 +- actions/public.php | 2 +- actions/register.php | 2 +- actions/shownotice.php | 6 +++--- actions/showstream.php | 4 ++-- actions/subscribe.php | 2 +- actions/subscribed.php | 2 +- actions/subscriptions.php | 2 +- 14 files changed, 17 insertions(+), 17 deletions(-) (limited to 'actions') diff --git a/actions/all.php b/actions/all.php index 8efaa5a82..f1a2229f0 100644 --- a/actions/all.php +++ b/actions/all.php @@ -17,7 +17,7 @@ * along with this program. If not, see . */ -if (!defined('LACONICA')) { exit(1) } +if (!defined('LACONICA')) { exit(1); } class AllAction extends ShowstreamAction { diff --git a/actions/avatar.php b/actions/avatar.php index b715e02de..2244e7c78 100644 --- a/actions/avatar.php +++ b/actions/avatar.php @@ -17,7 +17,7 @@ * along with this program. If not, see . */ -if (!defined('LACONICA')) { exit(1) } +if (!defined('LACONICA')) { exit(1); } class AvatarAction extends SettingsAction { diff --git a/actions/login.php b/actions/login.php index c37f92b79..3f096dc0c 100644 --- a/actions/login.php +++ b/actions/login.php @@ -17,7 +17,7 @@ * along with this program. If not, see . */ -if (!defined('LACONICA')) { exit(1) } +if (!defined('LACONICA')) { exit(1); } class LoginAction extends Action { diff --git a/actions/logout.php b/actions/logout.php index 3b6914411..b2f0628f2 100644 --- a/actions/logout.php +++ b/actions/logout.php @@ -17,7 +17,7 @@ * along with this program. If not, see . */ -if (!defined('LACONICA')) { exit(1) } +if (!defined('LACONICA')) { exit(1); } class LogoutAction extends Action { function handle($args) { diff --git a/actions/newnotice.php b/actions/newnotice.php index 40a196a23..b15232dec 100644 --- a/actions/newnotice.php +++ b/actions/newnotice.php @@ -17,7 +17,7 @@ * along with this program. If not, see . */ -if (!defined('LACONICA')) { exit(1) } +if (!defined('LACONICA')) { exit(1); } class NewnoticeAction extends Action { diff --git a/actions/password.php b/actions/password.php index 3fd94b66a..fb670ecc9 100644 --- a/actions/password.php +++ b/actions/password.php @@ -17,7 +17,7 @@ * along with this program. If not, see . */ -if (!defined('LACONICA')) { exit(1) } +if (!defined('LACONICA')) { exit(1); } class PasswordAction extends SettingsAction { diff --git a/actions/profilesettings.php b/actions/profilesettings.php index 95462133e..f46045dde 100644 --- a/actions/profilesettings.php +++ b/actions/profilesettings.php @@ -17,7 +17,7 @@ * along with this program. If not, see . */ -if (!defined('LACONICA')) { exit(1) } +if (!defined('LACONICA')) { exit(1); } class ProfilesettingsAction extends SettingsAction { diff --git a/actions/public.php b/actions/public.php index 8cb854fec..698f99195 100644 --- a/actions/public.php +++ b/actions/public.php @@ -17,7 +17,7 @@ * along with this program. If not, see . */ -if (!defined('LACONICA')) { exit(1) } +if (!defined('LACONICA')) { exit(1); } class PublicAction extends StreamAction { diff --git a/actions/register.php b/actions/register.php index 753c79ecb..80cc6aa7e 100644 --- a/actions/register.php +++ b/actions/register.php @@ -17,7 +17,7 @@ * along with this program. If not, see . */ -if (!defined('LACONICA')) { exit(1) } +if (!defined('LACONICA')) { exit(1); } class RegisterAction extends Action { diff --git a/actions/shownotice.php b/actions/shownotice.php index 2e14963bb..21784e4fd 100644 --- a/actions/shownotice.php +++ b/actions/shownotice.php @@ -17,7 +17,7 @@ * along with this program. If not, see . */ -if (!defined('LACONICA')) { exit(1) } +if (!defined('LACONICA')) { exit(1); } class ShownoticeAction extends Action { @@ -64,8 +64,8 @@ class ShownoticeAction extends Action { common_start_element('a', array('href' => $profile->profileurl, 'class' => 'nickname', 'title' => - ($profile->fullname) ? $profile->fullname : - $profile->nickname)), + ($profile->fullname) ? $profile->fullname : + $profile->nickname), $profile->nickname); # FIXME: URL, image, video, audio common_element('span', array('class' => 'content'), diff --git a/actions/showstream.php b/actions/showstream.php index 8272e1038..c477ae29b 100644 --- a/actions/showstream.php +++ b/actions/showstream.php @@ -17,7 +17,7 @@ * along with this program. If not, see . */ -if (!defined('LACONICA')) { exit(1) } +if (!defined('LACONICA')) { exit(1); } define('SUBSCRIPTIONS_PER_ROW', 5); define('SUBSCRIPTIONS', 80); @@ -169,7 +169,7 @@ class ShowstreamAction extends StreamAction { } common_element('a', array('href' => common_local_url('subscriptions', - array('profile' => $profile->nickname)) + array('profile' => $profile->nickname)), 'class' => 'moresubscriptions'), _t('All subscriptions')); diff --git a/actions/subscribe.php b/actions/subscribe.php index aab6c4b15..68fdd24e9 100644 --- a/actions/subscribe.php +++ b/actions/subscribe.php @@ -17,7 +17,7 @@ * along with this program. If not, see . */ -if (!defined('LACONICA')) { exit(1) } +if (!defined('LACONICA')) { exit(1); } class SubscribeAction extends Action { function handle($args) { diff --git a/actions/subscribed.php b/actions/subscribed.php index f24470f02..d28ff237d 100644 --- a/actions/subscribed.php +++ b/actions/subscribed.php @@ -17,7 +17,7 @@ * along with this program. If not, see . */ -if (!defined('LACONICA')) { exit(1) } +if (!defined('LACONICA')) { exit(1); } class SubscribedAction extends Action { diff --git a/actions/subscriptions.php b/actions/subscriptions.php index 87b8a4e48..60ceb0c98 100644 --- a/actions/subscriptions.php +++ b/actions/subscriptions.php @@ -17,7 +17,7 @@ * along with this program. If not, see . */ -if (!defined('LACONICA')) { exit(1) } +if (!defined('LACONICA')) { exit(1); } class SubscriptionsAction extends Action { -- cgit v1.2.3-54-g00ecf