Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
question2answer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
outils
question2answer
Commits
baaebd15
Commit
baaebd15
authored
Mar 03, 2018
by
Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix FinalStep hierarchy
parent
ea6890ba
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
15 additions
and
47 deletions
+15
-47
AbstractFinalStep.php
qa-include/Q2A/Recalc/AbstractFinalStep.php
+6
-2
BlobsMoveComplete.php
qa-include/Q2A/Recalc/BlobsMoveComplete.php
+1
-1
BlobsToDBComplete.php
qa-include/Q2A/Recalc/BlobsToDBComplete.php
+0
-31
CacheClearComplete.php
qa-include/Q2A/Recalc/CacheClearComplete.php
+1
-1
DeleteHiddenComplete.php
qa-include/Q2A/Recalc/DeleteHiddenComplete.php
+1
-1
RecalcCategoriesComplete.php
qa-include/Q2A/Recalc/RecalcCategoriesComplete.php
+1
-1
RecalcPointsComplete.php
qa-include/Q2A/Recalc/RecalcPointsComplete.php
+1
-1
RecountPostsComplete.php
qa-include/Q2A/Recalc/RecountPostsComplete.php
+1
-1
RefillEventsComplete.php
qa-include/Q2A/Recalc/RefillEventsComplete.php
+1
-1
ReindexPostsComplete.php
qa-include/Q2A/Recalc/ReindexPostsComplete.php
+0
-5
State.php
qa-include/Q2A/Recalc/State.php
+2
-2
No files found.
qa-include/Q2A/Recalc/AbstractFinalStep.php
View file @
baaebd15
...
...
@@ -4,7 +4,7 @@
http://www.question2answer.org/
File: qa-include/Q2A/Recalc/AbstractFinalStep.php
Description: Base class for final step classes in the recal processes.
Description: Base class for final step classes in the recal
c
processes.
This program is free software; you can redistribute it and/or
...
...
@@ -26,8 +26,12 @@ if (!defined('QA_VERSION')) { // don't allow this page to be requested directly
exit
;
}
abstract
class
Q2A_Recalc_AbstractFinalStep
extends
Q2A_Recalc_AbstractStep
{
protected
$isFinalStep
=
true
;
public
function
doStep
()
{
throw
new
Exception
(
'Do not process the completion step.'
);
}
}
qa-include/Q2A/Recalc/Blobs
ToDisk
Complete.php
→
qa-include/Q2A/Recalc/Blobs
Move
Complete.php
View file @
baaebd15
...
...
@@ -26,7 +26,7 @@ if (!defined('QA_VERSION')) { // don't allow this page to be requested directly
exit
;
}
class
Q2A_Recalc_Blobs
ToDiskComplete
extends
Q2A_Recalc_ReindexPostsComplete
class
Q2A_Recalc_Blobs
MoveComplete
extends
Q2A_Recalc_AbstractFinalStep
{
public
function
getMessage
()
{
...
...
qa-include/Q2A/Recalc/BlobsToDBComplete.php
deleted
100644 → 0
View file @
ea6890ba
<?php
/*
Question2Answer by Gideon Greenspan and contributors
http://www.question2answer.org/
File: qa-include/Q2A/Recalc/BlobsToDBComplete.php
Description: Recalc class for the end of the blobs to database process.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
More about this license: http://www.question2answer.org/license.php
*/
if
(
!
defined
(
'QA_VERSION'
))
{
// don't allow this page to be requested directly from browser
header
(
'Location: ../../'
);
exit
;
}
class
Q2A_Recalc_BlobsToDBComplete
extends
Q2A_Recalc_BlobsToDiskComplete
{
}
qa-include/Q2A/Recalc/CacheClearComplete.php
View file @
baaebd15
...
...
@@ -26,7 +26,7 @@ if (!defined('QA_VERSION')) { // don't allow this page to be requested directly
exit
;
}
class
Q2A_Recalc_CacheClearComplete
extends
Q2A_Recalc_
ReindexPostsComplete
class
Q2A_Recalc_CacheClearComplete
extends
Q2A_Recalc_
AbstractFinalStep
{
public
function
getMessage
()
{
...
...
qa-include/Q2A/Recalc/DeleteHiddenComplete.php
View file @
baaebd15
...
...
@@ -26,7 +26,7 @@ if (!defined('QA_VERSION')) { // don't allow this page to be requested directly
exit
;
}
class
Q2A_Recalc_DeleteHiddenComplete
extends
Q2A_Recalc_
ReindexPostsComplete
class
Q2A_Recalc_DeleteHiddenComplete
extends
Q2A_Recalc_
AbstractFinalStep
{
public
function
getMessage
()
{
...
...
qa-include/Q2A/Recalc/RecalcCategoriesComplete.php
View file @
baaebd15
...
...
@@ -26,7 +26,7 @@ if (!defined('QA_VERSION')) { // don't allow this page to be requested directly
exit
;
}
class
Q2A_Recalc_RecalcCategoriesComplete
extends
Q2A_Recalc_
ReindexPostsComplete
class
Q2A_Recalc_RecalcCategoriesComplete
extends
Q2A_Recalc_
AbstractFinalStep
{
public
function
getMessage
()
{
...
...
qa-include/Q2A/Recalc/RecalcPointsComplete.php
View file @
baaebd15
...
...
@@ -26,7 +26,7 @@ if (!defined('QA_VERSION')) { // don't allow this page to be requested directly
exit
;
}
class
Q2A_Recalc_RecalcPointsComplete
extends
Q2A_Recalc_
ReindexPostsComplete
class
Q2A_Recalc_RecalcPointsComplete
extends
Q2A_Recalc_
AbstractFinalStep
{
public
function
getMessage
()
{
...
...
qa-include/Q2A/Recalc/RecountPostsComplete.php
View file @
baaebd15
...
...
@@ -26,7 +26,7 @@ if (!defined('QA_VERSION')) { // don't allow this page to be requested directly
exit
;
}
class
Q2A_Recalc_RecountPostsComplete
extends
Q2A_Recalc_
ReindexPostsComplete
class
Q2A_Recalc_RecountPostsComplete
extends
Q2A_Recalc_
AbstractFinalStep
{
public
function
getMessage
()
{
...
...
qa-include/Q2A/Recalc/RefillEventsComplete.php
View file @
baaebd15
...
...
@@ -26,7 +26,7 @@ if (!defined('QA_VERSION')) { // don't allow this page to be requested directly
exit
;
}
class
Q2A_Recalc_RefillEventsComplete
extends
Q2A_Recalc_
ReindexPostsComplete
class
Q2A_Recalc_RefillEventsComplete
extends
Q2A_Recalc_
AbstractFinalStep
{
public
function
getMessage
()
{
...
...
qa-include/Q2A/Recalc/ReindexPostsComplete.php
View file @
baaebd15
...
...
@@ -28,11 +28,6 @@ if (!defined('QA_VERSION')) { // don't allow this page to be requested directly
class
Q2A_Recalc_ReindexPostsComplete
extends
Q2A_Recalc_AbstractFinalStep
{
public
function
doStep
()
{
throw
new
Exception
(
'Do not process the completion step.'
);
}
public
function
getMessage
()
{
return
qa_lang
(
'admin/reindex_posts_complete'
);
...
...
qa-include/Q2A/Recalc/State.php
View file @
baaebd15
...
...
@@ -73,8 +73,8 @@ class Q2A_Recalc_State
'dorefillevents_complete'
=>
'RefillEventsComplete'
,
'dorecalccategories_complete'
=>
'RecalcCategoriesComplete'
,
'dodeletehidden_complete'
=>
'DeleteHiddenComplete'
,
'doblobstodisk_complete'
=>
'Blobs
ToDisk
Complete'
,
'doblobstodb_complete'
=>
'Blobs
ToDB
Complete'
,
'doblobstodisk_complete'
=>
'Blobs
Move
Complete'
,
'doblobstodb_complete'
=>
'Blobs
Move
Complete'
,
'docacheclear_complete'
=>
'CacheClearComplete'
,
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment