forked from ivre/ivre
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ivre#1610 from p-l-/fix-dokuwiki-patch
Patches/Dokuwiki: update for new stable version
- Loading branch information
Showing
2 changed files
with
29 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>'; | ||
} | ||
} |