Commit 833153ec by Scott

Post-DB init for different request types

parent 5321f11a
...@@ -79,6 +79,7 @@ $operation = qa_post_text('qa_operation'); ...@@ -79,6 +79,7 @@ $operation = qa_post_text('qa_operation');
if (isset($routing[$operation])) { if (isset($routing[$operation])) {
qa_db_connect('qa_ajax_db_fail_handler'); qa_db_connect('qa_ajax_db_fail_handler');
qa_initialize_postdb_plugins();
qa_initialize_buffering(); qa_initialize_buffering();
require QA_INCLUDE_DIR . 'ajax/' . $routing[$operation]; require QA_INCLUDE_DIR . 'ajax/' . $routing[$operation];
......
...@@ -44,6 +44,7 @@ qa_report_process_stage('init_blob'); ...@@ -44,6 +44,7 @@ qa_report_process_stage('init_blob');
require_once QA_INCLUDE_DIR . 'app/blobs.php'; require_once QA_INCLUDE_DIR . 'app/blobs.php';
qa_db_connect('qa_blob_db_fail_handler'); qa_db_connect('qa_blob_db_fail_handler');
qa_initialize_postdb_plugins();
$blob = qa_read_blob(qa_get('qa_blobid')); $blob = qa_read_blob(qa_get('qa_blobid'));
......
...@@ -104,7 +104,7 @@ function qa_feed_load_ifcategory($categoryslugs, $allkey, $catkey, &$title, ...@@ -104,7 +104,7 @@ function qa_feed_load_ifcategory($categoryslugs, $allkey, $catkey, &$title,
// Connect to database and get the type of feed and category requested (in some cases these are overridden later) // Connect to database and get the type of feed and category requested (in some cases these are overridden later)
qa_db_connect('qa_feed_db_fail_handler'); qa_db_connect('qa_feed_db_fail_handler');
qa_preload_options(); qa_initialize_postdb_plugins();
$requestlower = strtolower(qa_request()); $requestlower = strtolower(qa_request());
$foursuffix = substr($requestlower, -4); $foursuffix = substr($requestlower, -4);
......
...@@ -44,6 +44,7 @@ qa_report_process_stage('init_image'); ...@@ -44,6 +44,7 @@ qa_report_process_stage('init_image');
require_once QA_INCLUDE_DIR . 'db/cache.php'; require_once QA_INCLUDE_DIR . 'db/cache.php';
qa_db_connect('qa_image_db_fail_handler'); qa_db_connect('qa_image_db_fail_handler');
qa_initialize_postdb_plugins();
$blobid = qa_get('qa_blobid'); $blobid = qa_get('qa_blobid');
$size = (int)qa_get('qa_size'); $size = (int)qa_get('qa_size');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment