diff --git a/lib/ajax/ajaxcourse.js b/lib/ajax/ajaxcourse.js index 88b5f717c65..2cf7aa8b867 100644 --- a/lib/ajax/ajaxcourse.js +++ b/lib/ajax/ajaxcourse.js @@ -210,6 +210,11 @@ main_class.prototype.update_marker = function(newMarker){ this.connect('post','class=course&field=marker',null,'value='+this.marker.sectionId); } +main_class.prototype.getString = function(title,variable){ + if(this.portal.strings[title]) + return this.portal.strings[title].replace(/_var_/,variable); + } + var main = new main_class(); function php_portal_class(){