From a3e7521a2aa064454b76df6a95286c78b29bbe89 Mon Sep 17 00:00:00 2001 From: onli Date: Sun, 1 Jan 2023 18:29:51 +0100 Subject: [PATCH] Fix: Spartacus emerge stopped --- emerge_spartacus.php | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/emerge_spartacus.php b/emerge_spartacus.php index ecf81272..cc974648 100644 --- a/emerge_spartacus.php +++ b/emerge_spartacus.php @@ -9,8 +9,45 @@ header('Content-Type: text/plain'); define('IN_serendipity', true); define('LASTRUN', '\n"); +define('PATH_SMARTY_COMPILE', ''); error_reporting(E_ALL & ~E_NOTICE); +# No-op the database functions +function serendipity_db_begin_transaction() {} + +function serendipity_db_end_transaction($commit) {} + +function serendipity_db_in_sql($col, &$search_ids, $type = ' OR ') {} + +function &serendipity_db_query($sql, $single = false, $result_type = "both", $reportErr = false, $assocKey = false, $assocVal = false, $expectError = false) {} + +function serendipity_db_query2($sql, $parameters = array()) {} + +function serendipity_db_insert_id() {} + +function serendipity_db_affected_rows() {} + +function serendipity_db_updated_rows() {} + +function serendipity_db_matched_rows() {} + +function serendipity_db_escape_string($string) {} + +function serendipity_db_limit($offset, $limit) {} + +function serendipity_db_limit_sql($limitstring) {} + +function serendipity_db_connect() {} + +function serendipity_db_reconnect() {} + +function serendipity_db_schema_import($query) {} + +function serendipity_db_probe($hash, &$errs) {} + +function serendipity_db_concat($string) {} + + class emerge_spartacus { var $helper;