From 557e0b52218c2ec11eb0179e2aebf6f6782ffdc9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 11 Oct 2008 00:08:21 +0000 Subject: [PATCH] Some fixes for yoomedia extension - The extension "yoomedia" now is always turned on while installation phase. You should not deactivate it. If you do so, your daily requests will not reset. - The above note added to extension template - Commented out "return false;" now commented in... ;-) --- inc/databases.php | 2 +- inc/extensions/ext-yoomedia.php | 3 +++ inc/modules/admin/what-list_yoomedia_tm.php | 2 +- templates/de/html/ext/ext_yoomedia.tpl | 6 +++++- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/inc/databases.php b/inc/databases.php index f2a552eb8b..83f8dfafd3 100644 --- a/inc/databases.php +++ b/inc/databases.php @@ -113,7 +113,7 @@ define('USAGE_BASE', "usage"); define('SERVER_URL', "http://www.mxchange.org"); // This current patch level -define('CURR_SVN_REVISION', "486"); +define('CURR_SVN_REVISION', "487"); // Take a prime number which is long (if you know a longer one please try it out!) define('_PRIME', 591623); diff --git a/inc/extensions/ext-yoomedia.php b/inc/extensions/ext-yoomedia.php index a8951fdd16..8aeccec957 100644 --- a/inc/extensions/ext-yoomedia.php +++ b/inc/extensions/ext-yoomedia.php @@ -135,5 +135,8 @@ default: // Do stuff when extension is loaded // Language file prefix $EXT_LANG_PREFIX = "yoomedia"; +// Extension is always active? +$EXT_ALWAYS_ACTIVE = "Y"; + // ?> diff --git a/inc/modules/admin/what-list_yoomedia_tm.php b/inc/modules/admin/what-list_yoomedia_tm.php index d8e3fc09ce..91150db8f6 100644 --- a/inc/modules/admin/what-list_yoomedia_tm.php +++ b/inc/modules/admin/what-list_yoomedia_tm.php @@ -67,7 +67,7 @@ if ($_CONFIG['yoomedia_requests_remain'] == 0) { LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_YOOMEDIA_REQUESTS_DEPLETED); // Abort here! - //return false; + return false; } // END - if // Get parsed array back diff --git a/templates/de/html/ext/ext_yoomedia.tpl b/templates/de/html/ext/ext_yoomedia.tpl index adea798923..063f04672f 100644 --- a/templates/de/html/ext/ext_yoomedia.tpl +++ b/templates/de/html/ext/ext_yoomedia.tpl @@ -1 +1,5 @@ -Erweiterung zur Anbindung an die API (Interface 2.0!) von [Yoo!Media]. +Erweiterung zur Anbindung an die API (Interface 2.0!) von [Yoo!Media]. Diese Erweiterung +muss aktiviert sein, damit die täglichen freien Abfragen wieder +zurückgesetzt werden. -- 2.39.5