remove class_exists wrapper for class definitions
This commit is contained in:
parent
63e844111a
commit
bc38e8e1de
|
|
@ -25,7 +25,6 @@
|
||||||
Matthew Vale <github@mafoo.org>
|
Matthew Vale <github@mafoo.org>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (!class_exists('tones')) {
|
|
||||||
class tones {
|
class tones {
|
||||||
|
|
||||||
//define variables
|
//define variables
|
||||||
|
|
@ -33,7 +32,7 @@ if (!class_exists('tones')) {
|
||||||
private $music_list;
|
private $music_list;
|
||||||
private $recordings_list;
|
private $recordings_list;
|
||||||
private $default_tone_label;
|
private $default_tone_label;
|
||||||
|
|
||||||
//class constructor
|
//class constructor
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
|
|
@ -61,11 +60,8 @@ if (!class_exists('tones')) {
|
||||||
$this->tones = $tone_list ?? '';
|
$this->tones = $tone_list ?? '';
|
||||||
unset($sql, $tones, $tone, $tone_list);
|
unset($sql, $tones, $tone, $tone_list);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function tones_list() {
|
public function tones_list() {
|
||||||
return $this->tones;
|
return $this->tones;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue