Skip to content

Commit

Permalink
Merge pull request ivre#1610 from p-l-/fix-dokuwiki-patch
Browse files Browse the repository at this point in the history
Patches/Dokuwiki: update for new stable version
  • Loading branch information
p-l- authored Feb 27, 2024
2 parents 092525b + 765e5ad commit 16e5a8a
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 10 deletions.
19 changes: 19 additions & 0 deletions patches/dokuwiki/backlinks-20230404a.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
--- inc/Ui/Backlinks.php.orig 2022-08-01 12:59:41.027353178 +0200
+++ inc/Ui/Backlinks.php 2022-08-01 13:13:32.514029298 +0200
@@ -35,7 +35,15 @@ class Backlinks extends Ui
print '</div></li>';
}
print '</ul>';
- } else {
+ }
+ if (filter_var($ID, FILTER_VALIDATE_IP)) {
+ print '<ul class="idx">';
+ print '<li><div class="li">';
+ print '<a target="_top" href="/#'.$ID.'">IVRE record(s)</a>';
+ print '</div></li>';
+ print '</ul>';
+ }
+ else if(empty($data)) {
print '<div class="level1"><p>'. $lang['nothingfound'] .'</p></div>';
}
}
20 changes: 10 additions & 10 deletions patches/dokuwiki/backlinks.patch
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
--- inc/Ui/Backlinks.php.orig 2022-08-01 12:59:41.027353178 +0200
+++ inc/Ui/Backlinks.php 2022-08-01 13:13:32.514029298 +0200
--- inc/Ui/Backlinks.php.orig 2024-02-27 10:32:20.196910140 +0100
+++ inc/Ui/Backlinks.php 2024-02-27 10:33:11.686906304 +0100
@@ -35,7 +35,15 @@ class Backlinks extends Ui
print '</div></li>';
echo '</div></li>';
}
print '</ul>';
echo '</ul>';
- } else {
+ }
+ if (filter_var($ID, FILTER_VALIDATE_IP)) {
+ print '<ul class="idx">';
+ print '<li><div class="li">';
+ print '<a target="_top" href="/#'.$ID.'">IVRE record(s)</a>';
+ print '</div></li>';
+ print '</ul>';
+ echo '<ul class="idx">';
+ echo '<li><div class="li">';
+ echo '<a target="_top" href="/#'.$ID.'">IVRE record(s)</a>';
+ echo '</div></li>';
+ echo '</ul>';
+ }
+ else if(empty($data)) {
print '<div class="level1"><p>'. $lang['nothingfound'] .'</p></div>';
echo '<div class="level1"><p>' . $lang['nothingfound'] . '</p></div>';
}
}

0 comments on commit 16e5a8a

Please sign in to comment.