-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4c84b61
commit 794ba2e
Showing
3 changed files
with
78 additions
and
47 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
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
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,26 @@ | ||
<?php | ||
/** | ||
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html) | ||
* @author Christoph Scholz <christoph.scholz@gmail.com> | ||
*/ | ||
|
||
/** | ||
* print a newline terminated string | ||
* | ||
* You can give an indention as optional parameter | ||
* | ||
* This function is an exact copy of 'ptln' in DokuWiki | ||
* which is deprecated since 2023-08-31. | ||
* This is introduced here in order to get | ||
* rid of deprecations warnings without changing the | ||
* plugin too much. | ||
* | ||
* @author Andreas Gohr <andi@splitbrain.org> | ||
* | ||
* @param string $string line of text | ||
* @param int $indent number of spaces indention | ||
*/ | ||
function lptln($string, $indent = 0) | ||
{ | ||
echo str_repeat(' ', $indent) . "$string\n"; | ||
} |