diff --git a/quickphoto/quickphoto.php b/quickphoto/quickphoto.php
index a3ba1059..7e7bd1a0 100644
--- a/quickphoto/quickphoto.php
+++ b/quickphoto/quickphoto.php
@@ -1,32 +1,29 @@
*/
-use Friendica\Core\Hook;
-
function quickphoto_install() {
- Hook::register('page_header', 'addon/quickphoto/quickphoto.php', 'quickphoto_header');
- // Emergency hook: If the JS fails during transmission
- Hook::register('post_post', 'addon/quickphoto/quickphoto.php', 'quickphoto_post_hook');
+ Friendica\Core\Hook::register('page_header', 'addon/quickphoto/quickphoto.php', 'quickphoto_header');
+ Friendica\Core\Hook::register('post_post', 'addon/quickphoto/quickphoto.php', 'quickphoto_post_hook');
}
function quickphoto_header(&$header) {
- $header .= '' . "\n";
-}
+ $desc_label = 'Image description';
-/**
- * Processes the text directly upon receipt on the server
- */
-function quickphoto_post_hook(&$item) {
- if (!isset($item['body'])) {
- return;
+ if (function_exists('t')) {
+ $desc_label = t('Image description');
}
- // If the JS couldn't do the job, we have the problem here
- // that we don't have LocalStorage. That's why the JS is primarily responsible here.
- // We'll leave this hook as a placeholder for future server validations.
+ $js_label = addslashes($desc_label);
+
+ $header .= "\n" . '';
+ $header .= "\n" . '' . "\n";
+}
+
+function quickphoto_post_hook(&$item) {
+ // Placeholder
}
\ No newline at end of file