From 13bf28cf32e058cd0ed35f12f78bc92b1f2dfbae Mon Sep 17 00:00:00 2001 From: vargenau Date: Tue, 28 Jan 2014 17:09:51 +0000 Subject: [PATCH] Remove unused variables git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@8849 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/CachedMarkup.php | 1 - lib/Google.php | 4 +--- lib/editpage.php | 2 -- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/CachedMarkup.php b/lib/CachedMarkup.php index 7966cde59..82981d62d 100644 --- a/lib/CachedMarkup.php +++ b/lib/CachedMarkup.php @@ -122,7 +122,6 @@ class CacheableMarkup extends XmlContent */ function getLinkInfo() { - $link = array(); foreach ($this->_content as $link) { if (!isa($link, 'Cached_Link')) continue; diff --git a/lib/Google.php b/lib/Google.php index 2a1f2f9fd..83ece47c6 100644 --- a/lib/Google.php +++ b/lib/Google.php @@ -95,9 +95,7 @@ class GoogleSearchResults foreach ($this->fields as $f) { $this->{$f} = $result[$f]; } - $i = 0; $this->results = array(); - //$this->resultElements = $result['resultElements']; foreach ($this->resultElements as $r) { $this->results[] = new GoogleSearchResult($r); } @@ -272,7 +270,7 @@ class Google /** * Get spelling suggestions from Google * - * @param string phrase word or phrase to spell-check + * @param string $phrase word or phrase to spell-check * @return string text of any suggested replacement, or None */ function doSpellingSuggestion($phrase) diff --git a/lib/editpage.php b/lib/editpage.php index 0bf3f0bbb..7efdbe804 100644 --- a/lib/editpage.php +++ b/lib/editpage.php @@ -903,10 +903,8 @@ class LoadFileConflictPageEditor $current = &$this->current; if ($selected && $selected->getVersion() != $current->getVersion()) { - $rev = $selected; $pagelink = WikiLink($selected); } else { - $rev = $current; $pagelink = WikiLink($this->page); } -- 2.45.0