]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
fixed src in order to pass unit tests [#358 state:peer-review-requested]
authorAnna Sobiepanek <annaopensource@gmail.com>
Fri, 25 Feb 2011 17:50:30 +0000 (12:50 -0500)
committerAnna Sobiepanek <annaopensource@gmail.com>
Fri, 25 Feb 2011 17:50:30 +0000 (12:50 -0500)
plugins/wikipedia/popcorn.wikipedia.js

index f81ee30ae665585d77a7f1653fc45a4f36beca0c..a311f9c4cc210dac0f5854220028685cf5a1c8a9 100644 (file)
@@ -89,7 +89,7 @@ var wikiCallback;
       
       var head   = document.getElementsByTagName( "head" )[0];
       var script = document.createElement( "script" );
-      script.src = "http://" + options.lang + ".wikipedia.org/w/api.php?action=parse&props=text&page=" + ( options.title || options.src.slice( options.src.lastIndexOf("/")+1) ) + "&format=json&callback=wikiCallback" + _guid;
+      script.src = "http://" + options.lang + ".wikipedia.org/w/api.php?action=parse&props=text&page=" + ( options.src.slice( options.src.lastIndexOf("/")+1) ) + "&format=json&callback=wikiCallback" + _guid;
 
       head.insertBefore( script, head.firstChild );        
     },