From cf7008e57509b271dccd6971f3bef46ace8a9687 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 10 Jan 2012 17:47:11 -0800 Subject: [PATCH] post preview to loozah --- boot.php | 2 +- include/conversation.php | 4 ++++ include/plugin.php | 6 +++++- view/theme/loozah/jot.tpl | 7 +++++++ view/theme/loozah/search_item.tpl | 2 +- view/theme/loozah/style.css | 10 ++++++++++ 6 files changed, 28 insertions(+), 3 deletions(-) diff --git a/boot.php b/boot.php index 1ad3249c..82bd7c36 100644 --- a/boot.php +++ b/boot.php @@ -9,7 +9,7 @@ require_once('include/nav.php'); require_once('include/cache.php'); define ( 'FRIENDICA_PLATFORM', 'Friendica'); -define ( 'FRIENDICA_VERSION', '2.3.1221' ); +define ( 'FRIENDICA_VERSION', '2.3.1222' ); define ( 'DFRN_PROTOCOL_VERSION', '2.22' ); define ( 'DB_UPDATE_VERSION', 1115 ); diff --git a/include/conversation.php b/include/conversation.php index 293c5a84..6f235f70 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -170,6 +170,10 @@ function conversation(&$a, $items, $mode, $update, $preview = false) { load_contact_links(local_user()); + $cb = array('items' => $items, 'mode' => $mode, 'update' => $update, 'preview' => $preview); + call_hooks('conversation_start',$cb); + + $items = $cb['items']; $cmnt_tpl = get_markup_template('comment_item.tpl'); $tpl = get_markup_template('wall_item.tpl'); diff --git a/include/plugin.php b/include/plugin.php index 9f283298..fe325ac3 100644 --- a/include/plugin.php +++ b/include/plugin.php @@ -19,7 +19,7 @@ function uninstall_plugin($plugin){ if (! function_exists('install_plugin')){ function install_plugin($plugin){ logger("Addons: installing " . $plugin); - $t = filemtime('addon/' . $plugin . '/' . $plugin . '.php'); + $t = @filemtime('addon/' . $plugin . '/' . $plugin . '.php'); @include_once('addon/' . $plugin . '/' . $plugin . '.php'); if(function_exists($plugin . '_install')) { $func = $plugin . '_install'; @@ -33,6 +33,10 @@ function install_plugin($plugin){ $plugin_admin ); } + else { + logger("Addons: FAILED installing " . $plugin); + } + }} // reload all updated plugins diff --git a/view/theme/loozah/jot.tpl b/view/theme/loozah/jot.tpl index 78cbecea..9bda1868 100644 --- a/view/theme/loozah/jot.tpl +++ b/view/theme/loozah/jot.tpl @@ -13,6 +13,7 @@ + @@ -58,7 +59,13 @@
$bang
+ + $preview + +
+ +
diff --git a/view/theme/loozah/search_item.tpl b/view/theme/loozah/search_item.tpl index 17dc6233..5db19b4f 100644 --- a/view/theme/loozah/search_item.tpl +++ b/view/theme/loozah/search_item.tpl @@ -1,4 +1,4 @@ -
+