Commit Graph

5443 Commits

Author SHA1 Message Date
Alex Schroeder
79da6c19aa fix portrait.t
The test hung because it used the following:

*ApplyRules = *OldTocApplyRules;
*RunMyRules = *RunMyRulesTocOld;

But recent changes in the modules make it necessary to use the "new"
style:

*ApplyRules = \&OldTocApplyRules;
*RunMyRules = \&RunMyRulesTocOld;
2015-04-12 18:54:23 +02: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
9529850a08 Fix the statix-copy test after the CSS change
The change of the default CSS file caused a test to fail. In order to
fix the test, the new CSS file has to be installed as
http://www.oddmuse.org/default.css.
2015-04-10 17:20:15 +02:00
Alex Schroeder
44f66dbed6 Merge branch 'master' of git.sv.gnu.org:/srv/git/oddmuse 2015-04-10 17:12:15 +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
Aleks-Daniel Jakimenko
5acb280d27 Merge branch 'master' of git.sv.gnu.org:/srv/git/oddmuse 2015-04-10 11:50:08 +03:00
Aleks-Daniel Jakimenko
391eb1a222 module-popularity: save links for each module 2015-04-10 11:49:29 +03:00
Alex Schroeder
994de81c41 edit-paragraphs.pl: Fix bad filename in module description 2015-04-10 08:36:26 +02:00
Alex Schroeder
555bec1bdf The Oddmuse style sheet is now the default
All sites without a style sheet will now use the style sheet we used for
oddmuse.org.
2015-04-09 21:43:52 +02:00
Alex Schroeder
e7c77a7b0e Fix permissions for tests 2015-04-06 21:00:58 +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
0db6f8e731 Moved ln.txt to the testing feeds 2015-04-03 10:45:37 +02:00
Alex Schroeder
3d85c07270 Moved the RSS files into a test subdirectory 2015-04-03 10:43:48 +02:00
Alex Schroeder
074450ce2f Moving more scripts into subdirectories 2015-04-03 10:39:22 +02:00
Alex Schroeder
d69e24f473 Moving more scripts into subdirectories 2015-04-03 10:30:13 +02:00
Alex Schroeder
a97f6baadf Makefile treats month-names-*.pl differently
Since these files are no longer in modules/ but in
modules/translations, something had to be done.
2015-04-03 09:21:37 +02: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
d8fba591d5 Merge branch 'master' of git.sv.gnu.org:/srv/git/oddmuse 2015-04-02 23:24:29 +02:00
Alex Schroeder
2045d2471a raw.t uses new location of raw.pl 2015-04-02 23:24:14 +02:00
Alex Schroeder
b25135eeef oddmuse.css: equal padding on gotobar links 2015-04-02 23:22:22 +02:00
Alex Schroeder
115145017a More files moved to contrib and scripts
Also, added README files.
2015-04-02 23:14:10 +02:00
Alex Schroeder
cdb00faf65 Move raw.pl to scripts 2015-04-02 23:06:01 +02:00
Alex Schroeder
5e2d20ecdb Moved many files to scripts or contrib
These files were cluttering up the root directory.
2015-04-02 22:54:48 +02:00
Alex Schroeder
1b9183311c GetHiddenValue no longer sets the parameter.
Why does GetHiddenValue act like SetParam? There seems to be no reason
to do it, so I'm removing this call.
2015-04-02 22:46:00 +02:00
Alex Schroeder
199dd9cd63 Edit conflict involving Preview are now fixed
We had a problem in the following situation: User A starts editing a
page at t1. This timestamp is stored in a the parameter oldtime. In the
meantime user B edits and saves the same page at t2. If user A saves,
the changes will be merged. If user A previews and saves later, the
changes would not be merged because the preview changed oldtiem from t1
to t2. This commit makes sure that the an oldtime parameter is prefered
over the actual page timestamp.
2015-04-02 22:22:40 +02:00
Alex Schroeder
0b5ccf0bb3 t/test.pl xpath functions now return lists
xpath_do now returns a list of results if you're calling it in list
context. This will work, for example:

my ($ts, $title, $text) = xpath_test($page,
				     '//input[@name="oldtime"]/attribute::value',
				     '//input[@name="title"]/attribute::value',
				     '//textarea[@name="text"]/text()');
2015-04-02 21:46:49 +02:00
Alex Schroeder
a256edb54f conflict.t: Test for preview loosing oldtime parameter
We suspected that this is what prevents decent merging on oddmuse.org.
2015-04-02 21:26:18 +02:00
Alex Schroeder
00de66780a info-ref: No more $Id$ 2015-04-02 20:46:09 +02: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
e67e519efa Copyright year 2015-03-30 22:15:31 +02: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
6ae8b3c9b1 surge-protection.t: Fix number of tests
Like big-brother.t, the number of tests was off because
$SurgeProtectionViews has increased.
2015-03-30 00:44:12 +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