Commit 09452ac6 by Simon Champion

Moved require(app/format) to appropriate place.

parent 2cef3fb4
......@@ -20,12 +20,12 @@
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;
}
require_once QA_INCLUDE_DIR . 'app/format.php'; //required for qa_number_format()
abstract class Q2A_Recalc_AbstractStep
{
......
......@@ -111,8 +111,6 @@ class Q2A_Recalc_RecalcMain
*/
public function getMessage()
{
require_once QA_INCLUDE_DIR . 'app/format.php';
$step = Q2A_Recalc_AbstractStep::factory($this->state);
return $step ? $step->getMessage() : '';
}
......
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