Notice: this is a static mirror for historical purposes.

View Issue Details Jump to Notes ] Related Changesets ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
138Mantis PluginsSnippetspublic2010-04-16 00:572010-04-16 06:45
Reporterobones 
Assigned ToJohn Reese 
PrioritynormalSeveritycrashReproducibilityalways
StatusresolvedResolutionfixed 
Product Version 
Target VersionFixed in Version 
Summary138: Latest version still uses plugin_lang_get("version")
DescriptionHello,

The latest source version has the "version" string removed from the translation file which is good.
However, the code still uses plugin_lang_get("version") in one place, inside the xmlhttprequest_plugin_snippets when it fills the data array.
I fixed this by replacing the incriminated line with this one:

"snippets" => $g_plugin_cache[plugin_get_current()]->version,

This obviously only works if the $g_plugin_cache global variable is pushed into the function with this line:

global $g_plugin_cache;

Hope this helps
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
User avatar (188)
obones (reporter)
2010-04-16 01:24

Attached patch fixes this
User avatar (190)
John Reese (administrator)
2010-04-16 06:45

Fix committed to master branch at 2010-04-16 13:28:44.

- Related Changesets
Snippets: master 1dd3cedf
Timestamp: 2010-04-16 13:28:44
Author: John Reese
Committer: John Reese
Details ] Diff ]
Fix 138: Lingering usage of version from lang
mod - Snippets/Snippets.API.php Diff ] File ]
mod - Snippets/Snippets.php Diff ] File ]

- Issue History
Date Modified Username Field Change
2010-04-16 00:57 obones New Issue
2010-04-16 01:24 obones File Added: Snippets.API.php.diff
2010-04-16 01:24 obones Note Added: 188
2010-04-16 06:45 John Reese Note Added: 190
2010-04-16 06:45 John Reese Status new => resolved
2010-04-16 06:45 John Reese Resolution open => fixed
2010-04-16 06:45 John Reese Assigned To => John Reese
2010-04-16 06:45 John Reese Changeset attached master 1dd3cedf =>


Copyright © 2000 - 2012 MantisBT Group
Time: 0.1436 seconds.
memory usage: 8,316 KB
Powered by Mantis Bugtracker

hosted with
Linode