Aleks-Daniel Jakimenko
2894a4b381
latex.pl: correct eval usage
2015-05-02 04:19:09 +03:00
Aleks-Daniel Jakimenko
3a57912585
No more undefined map behaviour in scalar context (now in modules)
2015-05-02 04:11:36 +03:00
Aleks-Daniel Jakimenko
4b49c1d326
No more variables declared in conditional statements (in modules)
2015-05-02 04:03:30 +03:00
Aleks-Daniel Jakimenko
37da9c4f2c
No more pointless nested subroutines
...
Fixes the following warning:
"Declaring a named sub inside another named sub does not prevent the
inner sub from being global."
2015-05-02 03:56:04 +03:00
Aleks-Daniel Jakimenko
d83106faa4
No more bareword filehandles in modules
2015-05-02 03:49:07 +03:00
Aleks-Daniel Jakimenko
f3fcf0a176
No more masking of earlier declarations
2015-05-02 03:44:07 +03:00
Aleks-Daniel Jakimenko
26b0853e13
No more two-arg open
2015-05-02 03:19:25 +03:00
Alex Schroeder
eb94e8a0d6
search-freetext.pl deleted
2015-05-01 19:18:17 +02:00
Aleks-Daniel Jakimenko
302141de71
Do not modify $_ in map {} (actual bugs solved, I believe)
...
$_ is not a copy, it is an alias to the original value.
Therefore modifying it will mess with original list... That's
not what we want most of the time.
Also, using map to s/// two variables does not look right. What
a stupid race to save one line of code.
2015-04-28 02:21:03 +03:00
Aleks-Daniel Jakimenko
a615bedccf
Fixed a bunch of stuff
2015-04-28 00:03:11 +03:00
Aleks-Daniel Jakimenko
10ca910c81
nosearch.pl: License notice
2015-04-27 18:20:48 +03:00
Aleks-Daniel Jakimenko
df87ff82c3
No more redundant 'package OddMuse;'
2015-04-27 17:41:59 +03:00
Aleks-Daniel Jakimenko
4a63d7e4df
private-wiki.pl: done! Works great now
2015-04-25 06:17:08 +03:00
Aleks-Daniel Jakimenko
10fbf17254
Removed debugging code
...
This key was used instead of using the password
2015-04-22 23:50:58 +03:00
Aleks-Daniel Jakimenko
2089fa60ea
Regenerated russian translation
2015-04-21 23:05:15 +03:00
Aleks-Daniel Jakimenko
b08a017a80
New module: private-wiki.pl (encrypt all data on the server)
2015-04-19 23:54:46 +03:00
Aleks-Daniel Jakimenko
5b731a61df
No more trailing whitespace (I can do it, I can do it!)
2015-04-17 01:45:11 +03:00
Aleks-Daniel Jakimenko
7112f1c170
No more trailing whitespace (this time for sure)
2015-04-17 01:43:19 +03:00
Aleks-Daniel Jakimenko
c7bd5617ff
No more trailing whitespace
2015-04-17 01:39:47 +03:00
Aleks-Daniel Jakimenko
892d352b9e
webdav.pl: Hide 'once' warnings
...
Without this it throws warnings like 'Name "OddMuse::ScriptName" used only once'.
It is unclear whether these warnings make any sense. We will hide them for now.
2015-04-14 23:36:58 +03:00
Alex Schroeder
39b8439371
Merge branch 'master' of git.sv.gnu.org:/srv/git/oddmuse
2015-04-13 07:59:57 +02:00
Alex Schroeder
e703a3ca89
webdav.pl: Add "if $verbose" to two warnings
2015-04-13 07:59:00 +02:00
Aleks-Daniel Jakimenko
17b2562054
No more "*Sub = *NewSub", \&NewSub used instead. (Completely now!)
2015-04-12 22:50:50 +03:00
Aleks-Daniel Jakimenko
40ec24349a
No more "*Sub = *NewSub", \&NewSub used instead. (Partial progress)
2015-04-11 23:41:33 +03:00
Alex Schroeder
d8129c16dd
Merge commit '6f8d281d7984e05edee03b0a04bf7b2be98555ac'
2015-04-10 17:24:24 +02:00
Alex Schroeder
472e8c5e73
cal3.pl deleted
2015-04-10 17:10:43 +02:00
Aleks-Daniel Jakimenko
6f8d281d79
No more "use vars"!
2015-04-10 13:31:28 +03:00
Alex Schroeder
994de81c41
edit-paragraphs.pl: Fix bad filename in module description
2015-04-10 08:36:26 +02:00
Alex Schroeder
21d8ab6089
Move strip.pl to the right directory
...
It belongs with other near-links oriented files.
2015-04-06 20:57:35 +02:00
Alex Schroeder
238aa0778b
Merge branch 'master' of git.sv.gnu.org:/srv/git/oddmuse
2015-04-06 20:52:07 +02:00
Alex Schroeder
55c17249bd
Moved the near site search proxies into directory
...
moin-search.pl, phpwiki-search.pl and usemod-search.pl were moved into a
new directory, modules/near-links, because they help support search of
near sites. They act as proxies, parsing the HTML and returning a file
format Oddmuse can understand.
See http://oddmuse.org/wiki/Near_Links#Searching_Near_Sites for more
information.
2015-04-06 20:49:39 +02:00
Aleks-Daniel Jakimenko
5d86d9aace
pygmentize.pl: @KnownLocks and @MyInitVariables added to our
2015-04-06 04:08:29 +03:00
Aleks-Daniel Jakimenko
a305782062
Merge branch 'master' of git.sv.gnu.org:/srv/git/oddmuse
2015-04-04 23:13:23 +03:00
Aleks-Daniel Jakimenko
655f6bc6e3
Missing wiki links
2015-04-04 23:12:55 +03:00
Alex Schroeder
50f4901cac
Merge branch 'master' of git.sv.gnu.org:/srv/git/oddmuse
2015-04-03 09:15:15 +02:00
Alex Schroeder
4156e34c1f
pygmentize.pl: register lock
2015-04-03 09:14:04 +02:00
Aleks-Daniel Jakimenko
0c5ca9d432
headers.pl: no whitespace in $RuleOrder{...} for consistency and easier parsing
2015-04-03 01:35:46 +03:00
Alex Schroeder
fb1507b6da
pygmentize.pl: add our $TempDir
2015-04-02 10:46:54 +02:00
Aleks-Daniel Jakimenko
fd026eda27
pygmentize.pl: @PygmentizeArgs option
2015-04-02 04:59:35 +03:00
Aleks-Daniel Jakimenko
32568bc3d0
module-updater.pl: fixed a problem with unicode
2015-04-01 17:55:48 +03:00
Aleks-Daniel Jakimenko
8edf8e0c4e
Merge branch 'master' of git.sv.gnu.org:/srv/git/oddmuse
2015-04-01 01:07:02 +03:00
Aleks-Daniel Jakimenko
be44cc74c7
New module: pygmentize.pl (syntax highlighting)
2015-04-01 01:05:55 +03:00
Alex Schroeder
88f472b4a3
Merge branch 'master' of git.sv.gnu.org:/srv/git/oddmuse
2015-03-30 22:11:05 +02:00
Alex Schroeder
1d1ab00fb8
anchors.pl supports redirection
2015-03-30 22:09:45 +02:00
Aleks-Daniel Jakimenko
88aac79df3
It is not that weird anymore! *Sub = *NewSub changed to *Sub = \&NewSub
...
We have just read-TFM and figured out that we can use \&Sub. This way it
passes "use strict" but produces a warning with "use warnings" (the
warning is "Subroutine package::Sub redefined at ...").
We can "fix" it with "no warnings 'redefine'"
2015-03-30 09:58:33 +03:00
Alex Schroeder
ab91ceece4
Merge branch 'master' of git.sv.gnu.org:/srv/git/oddmuse
2015-03-30 00:52:21 +02:00
Alex Schroeder
7f3e1592fc
weblog-3.pl: Move $CategoryInit up
2015-03-30 00:47:19 +02:00
Alex Schroeder
4df99dc798
Banning modules use our instead of my
...
All the banning modules have a problem. They use code like the
following:
*StrangeOldBannedContent = *BannedContent;
*BannedContent = *StrangeNewBannedContent;
The code above changes both the sub and the variable. $BannedContent now
points to $StrangeNewBannedContent (which is undefined) and the name of
the Banned Content page is only accessible via $StrangeOldBannedContent.
If we copy $StrangeOldBannedContent to $BannedContent, everything else
will keep working.
$BannedContent = $StrangeOldBannedContent;
But now use strict will not work. When we tried this:
my $StrangeOldBannedContent; # use strict
Then BannedContent disappeared from the admin page as shown by the tests
in strange-spam.t; the correct solution uses our instead of my.
I'm not sure why.
2015-03-30 00:29:39 +02:00
Aleks-Daniel Jakimenko
95c8c6b39d
Merge branch 'master' of git.sv.gnu.org:/srv/git/oddmuse
2015-03-30 01:23:54 +03:00
Alex Schroeder
a8ea996232
markup.pl: fix issue that caused test to fail
...
The hashref for the attributes cannot be undefined. Use {} instead of
undef.
2015-03-30 00:20:27 +02:00