- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 3.7k
Cleanups, fixes and a bit of optimizations for site/components batch #4 #12293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
25ca8c7
              c34e7bf
              eef4864
              2b4d825
              8864cff
              59ff2e6
              6cc4c65
              2748148
              5b88330
              File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | 
|---|---|---|
|  | @@ -36,7 +36,7 @@ public function display($cachable = false, $urlparams = false) | |
|  | ||
| $user = JFactory::getUser(); | ||
|  | ||
| if ($user->get('id') || ($this->input->getMethod() == 'POST' && $vName == 'category' )) | ||
| if ($user->get('id') || ($this->input->getMethod() === 'POST' && $vName === 'category' )) | ||
|          | ||
| { | ||
| $cachable = false; | ||
| } | ||
|  | ||
| Original file line number | Diff line number | Diff line change | 
|---|---|---|
|  | @@ -153,14 +153,14 @@ public function getCategoryId($segment, $query) | |
| { | ||
| if ($this->noIDs) | ||
| { | ||
| if ($child->alias == $segment) | ||
| if ($child->alias === $segment) | ||
| { | ||
| return $child->id; | ||
| } | ||
| } | ||
| else | ||
| { | ||
| if ($child->id == (int) $segment) | ||
| if ($child->id === (int) $segment) | ||
|          | ||
| { | ||
| return $child->id; | ||
| } | ||
|  | ||
| Original file line number | Diff line number | Diff line change | 
|---|---|---|
|  | @@ -19,15 +19,17 @@ | |
| $myrtl = $this->newsfeed->rtl; | ||
| $direction = ' '; | ||
|  | ||
| if ($lang->isRtl() && $myrtl == 0) | ||
| $isRtl= $lang->isRtl(); | ||
|          | ||
|  | ||
| if ($isRtl && $myrtl == 0) | ||
| { | ||
| $direction = ' redirect-rtl'; | ||
| } | ||
| elseif ($lang->isRtl() && $myrtl == 1) | ||
| elseif ($isRtl && $myrtl == 1) | ||
| { | ||
| $direction = ' redirect-ltr'; | ||
| } | ||
| elseif ($lang->isRtl() && $myrtl == 2) | ||
| elseif ($isRtl && $myrtl == 2) | ||
| { | ||
| $direction = ' redirect-rtl'; | ||
| } | ||
|  | @@ -93,7 +95,7 @@ | |
| <?php endif; ?> | ||
|  | ||
| <!-- Show Image --> | ||
| <?php if (isset($this->rssDoc->image) && isset($this->rssDoc->imagetitle) && $this->params->get('show_feed_image')) : ?> | ||
| <?php if (isset($this->rssDoc->image, $this->rssDoc->imagetitle) && $this->params->get('show_feed_image')) : ?> | ||
| <div> | ||
| <img src="<?php echo $this->rssDoc->image; ?>" alt="<?php echo $this->rssDoc->image->decription; ?>" /> | ||
| </div> | ||
|  | @@ -110,9 +112,9 @@ | |
| } | ||
| ?> | ||
| <?php | ||
| $uri = !empty($this->rssDoc[$i]->guid) || !is_null($this->rssDoc[$i]->guid) ? trim($this->rssDoc[$i]->guid) : trim($this->rssDoc[$i]->uri); | ||
| $uri = substr($uri, 0, 4) != 'http' ? $this->item->link : $uri; | ||
| $text = !empty($this->rssDoc[$i]->content) || !is_null($this->rssDoc[$i]->content) ? trim($this->rssDoc[$i]->content) : trim($this->rssDoc[$i]->description); | ||
| $uri = !empty($this->rssDoc[$i]->guid) || $this->rssDoc[$i]->guid !== null ? trim($this->rssDoc[$i]->guid) : trim($this->rssDoc[$i]->uri); | ||
| $uri = strpos($uri, 'http') !== 0 ? $this->item->link : $uri; | ||
| $text = !empty($this->rssDoc[$i]->content) || $this->rssDoc[$i]->content !== null ? trim($this->rssDoc[$i]->content) : trim($this->rssDoc[$i]->description); | ||
| $title = trim($this->rssDoc[$i]->title); | ||
| ?> | ||
| <li> | ||
|  | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice one! 😉