Extension talk:Javascript

The existing JavaScript.php gives a PHP warning on line 28 if there are no *.js files along with it and on line 39 if there are no *.css files along with it like: PHP Warning: Invalid argument supplied for foreach in /var/www/mediawiki/extensions/JavaScript/JavaScript.php on line 28, referer: http://www.....

This is because the glob PHP function cannot distinguish between no entries and an error condition when returning false.

It can be remedied with a check to eliminate the warnings by making the file as:
 * Wheres the rest of this code? A PHP alway and with a ?> . But your code don't end with it.


 * I think it will still work without the closing php tag. I have seen many PHP source code on mediawiki without the closing tag. But I always add it before copying it to my extensions directory. 60.241.61.96 13:45, 30 September 2011 (UTC)

Advantage over MediaWiki:Common.js is not clear
Could someone update the description of this extension so that its advantage over MediaWiki:Common.js is more clear? Badon 05:26, 23 November 2011 (UTC)

'Undefined variable: organicdesign' error when using this extension
I got error Undefined variable: organicdesign when using this script. Can someone please explain how to fix it?