Permalink
Browse files

Version++

  • Loading branch information...
1 parent 0d917b9 commit 1a8157beff395b8c1cc9d9661dce9cd9b7da65ff @low committed Sep 26, 2011
Showing with 17 additions and 17 deletions.
  1. +17 −17 low_title/pi.low_title.php
View
@@ -2,20 +2,20 @@
$plugin_info = array(
'pi_name' => 'Low Title',
- 'pi_version' => '2.0',
+ 'pi_version' => '2.0.1',
'pi_author' => 'Lodewijk Schutte ~ Low',
- 'pi_author_url' => 'http://loweblog.com/freelance/article/ee-title-plugin/',
- 'pi_description' => 'Plugin to quickly retrieve a title from an entry, category, weblog or site',
+ 'pi_author_url' => 'http://gotolow.com/software/low-title',
+ 'pi_description' => 'Plugin to quickly retrieve a title from an entry, category, channel or site',
'pi_usage' => Low_title::usage()
);
/**
* Low Title Plugin Class
*
* @package low-title-ee2_addon
-* @version 2.0
-* @author Lodewijk Schutte ~ Low <low@loweblog.com>
-* @link http://loweblog.com/freelance/article/ee-title-plugin/
+* @version 2.0.1
+* @author Lodewijk Schutte ~ Low <hi@gotolow.com>
+* @link http://gotolow.com/software/low-title
* @license http://creativecommons.org/licenses/by-sa/3.0/
*/
class Low_title {
@@ -177,18 +177,18 @@ function entry()
// sql for pages uri
if ($params['pages_uri'])
{
- // Normalize slashes
- $params['pages_uri'] = '/' . trim($params['pages_uri'], '/') . '/';
+ // Normalize slashes
+ // $params['pages_uri'] = '/' . trim($params['pages_uri'], '/') . '/';
+
+ // Get all sites pages
+ $pages = $this->EE->config->config['site_pages'];
+
+ // Get current site_id
+ $site_id = $this->EE->config->config['site_id'];
+
+ // Get current site pages
+ $pages = isset($pages[$site_id]) ? $pages[$site_id] : FALSE;
- // Get all sites pages
- $pages = $this->EE->config->config['site_pages'];
-
- // Get current site_id
- $site_id = $this->EE->config->config['site_id'];
-
- // Get current site pages
- $pages = isset($pages[$site_id]) ? $pages[$site_id] : false;
-
// Flip id => page_uri
if (is_array($pages) && is_array($pages['uris']))
{

0 comments on commit 1a8157b

Please sign in to comment.