Skip to content

Commit

Permalink
Code cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
parpalak committed Sep 26, 2024
1 parent 61415f3 commit 832ad90
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
3 changes: 1 addition & 2 deletions _extensions/s2_search/views/search_result.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
</a><br />
<?php echo trim($descr) ? $descr . '<br />' : ''; ?>
<small class="stuff">
<!-- <a class="url" href="--><?php //echo s2_link($url); ?><!--">--><?php //echo (s2_abs_link($link_escaped)); ?><!--</a>-->
<?php if (!empty($time)) echo /*' &mdash; ',*/ s2_date($time); ?>
<?php if (!empty($time)) echo s2_date($time); ?>
</small>
</p>
10 changes: 0 additions & 10 deletions _include/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
*/


use S2\Cms\Model\ExtensionCache;
use S2\Cms\Model\UrlBuilder;
use S2\Cms\Pdo\DbLayerException;

Expand Down Expand Up @@ -58,15 +57,6 @@ function s2_link($path = '', $params = []): string
return $urlBuilder->link($path, $params);
}

/**
* @deprecated Use UrlBuilder instead
*/
function s2_abs_link($path = '', $params = array())
{
/** @var UrlBuilder $urlBuilder */
$urlBuilder = Container::get(UrlBuilder::class);
return $urlBuilder->absLink($path, $params);
}

// Creates paging navigation (1 2 3 ... total_pages - 1 total_pages)
// $url must have the following form http://example.com/page?num=%d
Expand Down

0 comments on commit 832ad90

Please sign in to comment.