[14:23:33] I'm on a wiki using MW1.23 and I have a script that when I load it directly using an importScript() from my common.js or vector.js it loads and runs fine, but when I try to run it as a gadget I get "Error: JavaScript parse error: Parse error: Unexpected token; token 3 expected in file 'MediaWiki:Gadget-spamBlock.js' on line 48" [14:24:27] I load the script in MW:Gadgets-definitions as * spamBlock[ResourceLoader|default|dependencies=mediawiki.api|rights=block,delete,rollback]|spamBlock.js [14:24:54] http://ddowiki.com/page/MediaWiki:Gadget-spamBlock.js is the gadget [14:25:47] The script isn't pretty, I know that. It does work quick and dirty though. I'd like to get it working as a gadget better before I do any work "prettyfying" it. [14:29:19] I can't log in multilingual WS [14:29:32] while no issue elsewhere [14:29:40] is this a known issue? [14:33:42] line 48 is: if( this.new !== undefined ) { [14:34:20] new is a keyword, I'm wondering if I change it to: if( this[ 'new' ] !== undefined ) {// it might fix it... [14:37:08] Script still isn't working... Although I think that was the immediate issue. Now it gives me: Error: JavaScript parse error: Parse error: Unexpected token; token 3 expected in file 'MediaWiki:Gadget-spamBlock.js' on line 56 [14:37:19] line 56 is: despammerStatus += '

' + dResult.delete.title + ' has been deleted.

'; [14:38:25] I'm guessing its the same issue with .delete.: despammerStatus += '

' + dResult[ 'delete' ].title + ' has been deleted.

'; [14:40:42] Fixed! Thanks for all your help guys! [14:53:43] https://phabricator.wikimedia.org/T127650 any idea please? [21:02:14] Dear channel, I was looking for info about how the pageviews are counted and how the bots are filtered out, but couldn't find anything. Is there some info on this? [21:02:40] Also, I recall someone mentioning that there's also some statistics on the viewers as opposed to views - is that true? [21:03:19] I don't know if its up to date, but https://wikitech.wikimedia.org/wiki/Analytics/Pageviews might be helpful [21:08:58] bawolff: thank you, this is what I was looking for [22:24:02] Krenair, any idea when pt.wikimedia can be deployed? -> https://phabricator.wikimedia.org/T126832 [23:25:58] Alchimista, I was hoping for someone to comment on the potentially controversial idea I had for the database name [23:37:07] Krenair, the *rename*? That db has really old content, wich, and i'm not 100 % sure, was imported on our current wiki, but we don't know sql that deep to point a solution [23:37:50] Alchimista, no, jynus won't do a rename so I'm going to have to create it with a DB name like pt2wikimedia [23:38:27] now i'm thinking, would it be easier if we give the current wiki db to update the current one? [23:41:09] well that's the thing, we'd need to figure out every single schema change made since 2012 and apply it [23:44:58] i thought on a clean db because we need the pages history and users, not much more to preserve history, and we don't have so many important pages, so manually import was the solution - > http://wikimedia.pt/index.php?title=Especial%3ATodas+as+p%C3%A1ginas&from=&to=&namespace=0 [23:45:20] but if with the database you could do it better, we can provide a backuo [23:45:26] *backup [23:50:04] or just drop the DB like we have done with other closed wikis that we didn't want anymore [23:50:08] then just create fresh [23:55:41] for us, as long as we can keep the history of our important pages on our current wiki, any solution is good. We are in kind of a rush to get a working wiki :S [23:57:24] true, dropping the old DB is another option [23:58:29] although personally I hate deleting stuff :p [23:59:09] keep a archive on one of the private file stores, which is what happened to the others [23:59:56] any links for more info on exactly what happened there p858snake|L2 ?