From 4f4b03367aafc8efd36cf73ecab58cdd26802757 Mon Sep 17 00:00:00 2001 From: Friendika Date: Thu, 3 Nov 2011 15:14:33 -0700 Subject: [PATCH] plugin check returning 0 vs false --- boot.php | 2 +- mod/admin.php | 2 +- mod/profiles.php | 2 +- view/nav.tpl | 11 +---------- 4 files changed, 4 insertions(+), 13 deletions(-) diff --git a/boot.php b/boot.php index 9932f0430a..1c0328fb83 100644 --- a/boot.php +++ b/boot.php @@ -9,7 +9,7 @@ require_once('include/nav.php'); require_once('include/cache.php'); define ( 'FRIENDIKA_PLATFORM', 'Friendica'); -define ( 'FRIENDIKA_VERSION', '2.3.1153' ); +define ( 'FRIENDIKA_VERSION', '2.3.1154' ); define ( 'DFRN_PROTOCOL_VERSION', '2.22' ); define ( 'DB_UPDATE_VERSION', 1101 ); diff --git a/mod/admin.php b/mod/admin.php index f178e67f61..c4bb700566 100644 --- a/mod/admin.php +++ b/mod/admin.php @@ -506,7 +506,7 @@ function admin_page_plugins(&$a){ if (x($_GET,"a") && $_GET['a']=="t"){ // Toggle plugin status $idx = array_search($plugin, $a->plugins); - if ($idx){ + if ($idx !== false){ unset($a->plugins[$idx]); uninstall_plugin($plugin); info( sprintf( t("Plugin %s disabled."), $plugin ) ); diff --git a/mod/profiles.php b/mod/profiles.php index a5096a9846..ccd7d54741 100644 --- a/mod/profiles.php +++ b/mod/profiles.php @@ -458,7 +458,7 @@ function profiles_content(&$a) { $tpl_header = get_markup_template('profile_listing_header.tpl'); $o .= replace_macros($tpl_header,array( - '$header' => t('Profiles'), + '$header' => t('Edit/Manage Profiles'), '$chg_photo' => t('Change profile photo'), '$cr_new' => t('Create New Profile') )); diff --git a/view/nav.tpl b/view/nav.tpl index 16aa99cb3b..d0c640db15 100644 --- a/view/nav.tpl +++ b/view/nav.tpl @@ -47,16 +47,7 @@
  • $emptynotifications
  • - {{ endif }} - - - - - - - - - + {{ endif }}