Hej jeg får denne fejl i Price Calculator
Fatal error: Cannot redeclare class Settings in /home/freakstu/public_html/servicexperten.dk/wp-content/plugins/price-calc/control/Settings.php on line 9
filen ser sådan ud
<?php
/**
* Control class for back-end settings screen
*
* (c) 2009 by Igor Prochazka (thickthumb.com)
*/
class Settings {
afunction __construct() {
$this->options = array(
'bidformat',
'email',
'fullquote',
'contact',
'print',
'subtotal',
'currency',
'currencypost',
'subject',
'suppresszero',
'css',
'nocontinue',
'noback',
'subtotaltitle',
'subtotalvariable',
'subtotalspan',
'novariantcontinue',
'decimals',
'point',
'thousands',
'multitab',
'entertabbing',
'preloadstages'
);
$this->template = 'settings.php';
}
function action() {
switch( price_calc_get_from_request('action') ) {
case 'save':
$this->save();
break;
default:
$this->show();
break;
}
}
function save() {
foreach( $this->options as $option ) {
update_option( 'price-calc-' . $option, price_calc_get_from_request($option) );
}
$this->show();
}
function show() {
foreach( $this->options as $option ) {
$$option = get_option('price-calc-' . $option);
}
include( PRICE_CALC_TEMPLATES . $this->template );
}
}
?>
Har ikke rettet noget i den
not a support question