summaryrefslogtreecommitdiffstats
path: root/lib/class/radio.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/class/radio.class.php')
-rw-r--r--lib/class/radio.class.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/class/radio.class.php b/lib/class/radio.class.php
index 46743614..d4be4f76 100644
--- a/lib/class/radio.class.php
+++ b/lib/class/radio.class.php
@@ -92,11 +92,11 @@ class Radio extends database_object implements media {
// Verify the incoming data
if (!$data['id']) {
- Error::add('general', _('Missing ID'));
+ Error::add('general', T_('Missing ID'));
}
if (!$data['name']) {
- Error::add('general', _('Name Required'));
+ Error::add('general', T_('Name Required'));
}
$allowed_array = array('https','http','mms','mmsh','mmsu','mmst','rtsp');
@@ -104,7 +104,7 @@ class Radio extends database_object implements media {
$elements = explode(":",$data['url']);
if (!in_array($elements['0'],$allowed_array)) {
- Error::add('general', _('Invalid URL must be mms:// , https:// or http://'));
+ Error::add('general', T_('Invalid URL must be mms:// , https:// or http://'));
}
if (Error::occurred()) {
@@ -136,7 +136,7 @@ class Radio extends database_object implements media {
// Make sure we've got a name
if (!strlen($data['name'])) {
- Error::add('name', _('Name Required'));
+ Error::add('name', T_('Name Required'));
}
$allowed_array = array('https','http','mms','mmsh','mmsu','mmst','rtsp');
@@ -144,13 +144,13 @@ class Radio extends database_object implements media {
$elements = explode(":",$data['url']);
if (!in_array($elements['0'],$allowed_array)) {
- Error::add('url', _('Invalid URL must be http:// or https://'));
+ Error::add('url', T_('Invalid URL must be http:// or https://'));
}
// Make sure it's a real catalog
$catalog = new Catalog($data['catalog']);
if (!$catalog->name) {
- Error::add('catalog', _('Invalid Catalog'));
+ Error::add('catalog', T_('Invalid Catalog'));
}
if (Error::occurred()) { return false; }