From: Michael Vogel Date: Sun, 17 Feb 2013 17:05:30 +0000 (+0100) Subject: plugin: orphaned hooks weren't deleted. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7e154d5e4cb0c6be4631beef33a2ec1acc1fbdf5;p=friendica.git plugin: orphaned hooks weren't deleted. update: fixing update job for tags. --- diff --git a/boot.php b/boot.php index d77e653f14..0467524f68 100644 --- a/boot.php +++ b/boot.php @@ -14,7 +14,7 @@ require_once('include/features.php'); define ( 'FRIENDICA_PLATFORM', 'Friendica'); define ( 'FRIENDICA_VERSION', '3.1.1612' ); define ( 'DFRN_PROTOCOL_VERSION', '2.23' ); -define ( 'DB_UPDATE_VERSION', 1161 ); +define ( 'DB_UPDATE_VERSION', 1162 ); define ( 'EOL', "
\r\n" ); define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' ); diff --git a/include/plugin.php b/include/plugin.php index 9795cacf92..b89cb2c53d 100644 --- a/include/plugin.php +++ b/include/plugin.php @@ -175,7 +175,7 @@ function call_hooks($name, &$data = null) { } else { // remove orphan hooks - q("delete from hook where hook = '%s' and file = '$s' and function = '%s' limit 1", + q("delete from hook where hook = '%s' and file = '%s' and function = '%s' limit 1", dbesc($name), dbesc($hook[0]), dbesc($hook[1]) diff --git a/update.php b/update.php index 89b55cdb9c..6dd58757b9 100644 --- a/update.php +++ b/update.php @@ -1,6 +1,6 @@