Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added support for EE 2.4's URL_THIRD_THEMES constant

  • Loading branch information...
commit 6f2285b8adc40a950fc809971dde95bf0421c0c7 1 parent 87cba2f
@brandonkelly brandonkelly authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 ee2/third_party/pt_list/ft.pt_list.php
View
5 ee2/third_party/pt_list/ft.pt_list.php
@@ -48,9 +48,8 @@ private function _theme_url()
{
if (! isset($this->cache['theme_url']))
{
- $theme_folder_url = $this->EE->config->item('theme_folder_url');
- if (substr($theme_folder_url, -1) != '/') $theme_folder_url .= '/';
- $this->cache['theme_url'] = $theme_folder_url.'third_party/pt_list/';
+ $theme_folder_url = defined('URL_THIRD_THEMES') ? URL_THIRD_THEMES : $this->EE->config->slash_item('theme_folder_url').'third_party/';
+ $this->cache['theme_url'] = $theme_folder_url.'pt_list/';
}
return $this->cache['theme_url'];
Please sign in to comment.
Something went wrong with that request. Please try again.