mirror of
https://github.com/friendica/friendica
synced 2024-11-10 07:02:54 +00:00
plugin check returning 0 vs false
This commit is contained in:
parent
35305fb6d9
commit
4f4b03367a
4 changed files with 4 additions and 13 deletions
2
boot.php
2
boot.php
|
@ -9,7 +9,7 @@ require_once('include/nav.php');
|
||||||
require_once('include/cache.php');
|
require_once('include/cache.php');
|
||||||
|
|
||||||
define ( 'FRIENDIKA_PLATFORM', 'Friendica');
|
define ( 'FRIENDIKA_PLATFORM', 'Friendica');
|
||||||
define ( 'FRIENDIKA_VERSION', '2.3.1153' );
|
define ( 'FRIENDIKA_VERSION', '2.3.1154' );
|
||||||
define ( 'DFRN_PROTOCOL_VERSION', '2.22' );
|
define ( 'DFRN_PROTOCOL_VERSION', '2.22' );
|
||||||
define ( 'DB_UPDATE_VERSION', 1101 );
|
define ( 'DB_UPDATE_VERSION', 1101 );
|
||||||
|
|
||||||
|
|
|
@ -506,7 +506,7 @@ function admin_page_plugins(&$a){
|
||||||
if (x($_GET,"a") && $_GET['a']=="t"){
|
if (x($_GET,"a") && $_GET['a']=="t"){
|
||||||
// Toggle plugin status
|
// Toggle plugin status
|
||||||
$idx = array_search($plugin, $a->plugins);
|
$idx = array_search($plugin, $a->plugins);
|
||||||
if ($idx){
|
if ($idx !== false){
|
||||||
unset($a->plugins[$idx]);
|
unset($a->plugins[$idx]);
|
||||||
uninstall_plugin($plugin);
|
uninstall_plugin($plugin);
|
||||||
info( sprintf( t("Plugin %s disabled."), $plugin ) );
|
info( sprintf( t("Plugin %s disabled."), $plugin ) );
|
||||||
|
|
|
@ -458,7 +458,7 @@ function profiles_content(&$a) {
|
||||||
|
|
||||||
$tpl_header = get_markup_template('profile_listing_header.tpl');
|
$tpl_header = get_markup_template('profile_listing_header.tpl');
|
||||||
$o .= replace_macros($tpl_header,array(
|
$o .= replace_macros($tpl_header,array(
|
||||||
'$header' => t('Profiles'),
|
'$header' => t('Edit/Manage Profiles'),
|
||||||
'$chg_photo' => t('Change profile photo'),
|
'$chg_photo' => t('Change profile photo'),
|
||||||
'$cr_new' => t('Create New Profile')
|
'$cr_new' => t('Create New Profile')
|
||||||
));
|
));
|
||||||
|
|
11
view/nav.tpl
11
view/nav.tpl
|
@ -47,16 +47,7 @@
|
||||||
<li class="empty">$emptynotifications</li>
|
<li class="empty">$emptynotifications</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
{{ endif }}
|
{{ endif }}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<li id="nav-site-linkmenu" class="nav-menu-icon"><a href="#" rel="#nav-site-menu"><span class="icon s22 gear">Site</span></a>
|
<li id="nav-site-linkmenu" class="nav-menu-icon"><a href="#" rel="#nav-site-menu"><span class="icon s22 gear">Site</span></a>
|
||||||
<ul id="nav-site-menu" class="menu-popup">
|
<ul id="nav-site-menu" class="menu-popup">
|
||||||
|
|
Loading…
Reference in a new issue