diff options
author | George Hazan <george.hazan@gmail.com> | 2014-06-28 16:30:47 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-06-28 16:30:47 +0000 |
commit | 8d11b4da82fdd800bd0d8b2471ba71f5e8593470 (patch) | |
tree | 4fe65fa7cbb1c7b13db0c796f80f7f657ebf2b29 /plugins/PluginUpdater/src/Utils.cpp | |
parent | e32f708ef6cb3b5e0e79d136d7f15d86222118a5 (diff) |
- options disabled not to allow a user switch to a trunk
- default URL changed to http://miranda-ng.org/distr/deprecated/0.94.9/
git-svn-id: http://svn.miranda-ng.org/main/trunk@9600 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/PluginUpdater/src/Utils.cpp')
-rw-r--r-- | plugins/PluginUpdater/src/Utils.cpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/plugins/PluginUpdater/src/Utils.cpp b/plugins/PluginUpdater/src/Utils.cpp index 1c1f4c2ca5..5c6452f4b0 100644 --- a/plugins/PluginUpdater/src/Utils.cpp +++ b/plugins/PluginUpdater/src/Utils.cpp @@ -180,12 +180,16 @@ int Get_CRC(unsigned char* buffer, ULONG bufsize) TCHAR* GetDefaultUrl()
{
- TCHAR *result = db_get_tsa(NULL, MODNAME, "UpdateURL");
- if (result == NULL) { // URL is not set
- db_set_ts(NULL, MODNAME, "UpdateURL", _T(DEFAULT_UPDATE_URL));
- result = mir_tstrdup( _T(DEFAULT_UPDATE_URL));
- }
- return result;
+ #if MIRANDA_VER < 0x0A00
+ return mir_tstrdup(_T("http://miranda-ng.org/distr/deprecated/0.94.9"));
+ #else
+ TCHAR *result = db_get_tsa(NULL, MODNAME, "UpdateURL");
+ if (result == NULL) { // URL is not set
+ db_set_ts(NULL, MODNAME, "UpdateURL", _T(DEFAULT_UPDATE_URL));
+ result = mir_tstrdup( _T(DEFAULT_UPDATE_URL));
+ }
+ return result;
+ #endif
}
int CompareHashes(const ServListEntry *p1, const ServListEntry *p2)
|