Skip to content

Commit

Permalink
Cleanup old code
Browse files Browse the repository at this point in the history
  • Loading branch information
Klap-in committed Dec 27, 2021
1 parent 6a36ecf commit 5383e69
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions action.php
Expand Up @@ -7,20 +7,6 @@
* @author Gina Haeussge <osd@foosel.net>
*/

// must be run within Dokuwiki
if (!defined('DOKU_INC'))
die();

if (!defined('DOKU_LF'))
define('DOKU_LF', "\n");
if (!defined('DOKU_TAB'))
define('DOKU_TAB', "\t");
if (!defined('DOKU_PLUGIN'))
define('DOKU_PLUGIN', DOKU_INC . 'lib/plugins/');

require_once (DOKU_PLUGIN . 'action.php');
require_once(DOKU_INC . 'inc/pageutils.php');

class action_plugin_bloglinks extends DokuWiki_Action_Plugin {

/**
Expand Down Expand Up @@ -148,7 +134,7 @@ function _getRelatedEntries($namespace) {
*/
function _printLinks($relatedEntries) {
// display links
echo '<div id="plugin_bloglinks__links">' . DOKU_LF;
echo '<div id="plugin_bloglinks__links">';

foreach(array('prev', 'next') as $type) {
if (isset ($relatedEntries[$type])) {
Expand Down

0 comments on commit 5383e69

Please sign in to comment.