Permalink
Browse files

added main.getString function to better emulate php-moodle. In the fu…

…ture this could be extended to dynamically pull strings from moodle.php.
  • Loading branch information...
1 parent 6d9fbe8 commit 2fb6deb5747fa8f7c96d47778f8929fa98ac3ce6 cap2501 committed Oct 8, 2006
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/ajax/ajaxcourse.js
View
@@ -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(){

0 comments on commit 2fb6deb

Please sign in to comment.