From: <var...@us...> - 2015-04-14 16:31:07
|
Revision: 9668 http://sourceforge.net/p/phpwiki/code/9668 Author: vargenau Date: 2015-04-14 16:31:05 +0000 (Tue, 14 Apr 2015) Log Message: ----------- Display Search&Replace icons only if JS_SEARCHREPLACE is true Modified Paths: -------------- trunk/lib/editpage.php Modified: trunk/lib/editpage.php =================================================================== --- trunk/lib/editpage.php 2015-04-14 16:30:28 UTC (rev 9667) +++ trunk/lib/editpage.php 2015-04-14 16:31:05 UTC (rev 9668) @@ -774,17 +774,19 @@ if (defined('TOOLBAR_IMAGE_PULLDOWN') and TOOLBAR_IMAGE_PULLDOWN) { $toolbar->pushContent($this->imagePulldown()); } - $toolbar->pushContent(HTML::img(array('src' => $WikiTheme->getImageURL("ed_replace.png"), - 'class' => 'toolbar', - 'alt' => _('Search & Replace'), - 'title' => _('Search & Replace'), - 'onclick' => "replace();"))); - $toolbar->pushContent(HTML::img(array('src' => $WikiTheme->getImageURL("ed_undo_d.png"), - 'class' => 'toolbar', - 'id' => 'sr_undo', - 'alt' => _('Undo Search & Replace'), - 'title' => _('Undo Search & Replace'), - 'onclick' => "do_undo();"))); + if (defined('JS_SEARCHREPLACE') and JS_SEARCHREPLACE) { + $toolbar->pushContent(HTML::img(array('src' => $WikiTheme->getImageURL("ed_replace.png"), + 'class' => 'toolbar', + 'alt' => _('Search & Replace'), + 'title' => _('Search & Replace'), + 'onclick' => "replace();"))); + $toolbar->pushContent(HTML::img(array('src' => $WikiTheme->getImageURL("ed_undo_d.png"), + 'class' => 'toolbar', + 'id' => 'sr_undo', + 'alt' => _('Undo Search & Replace'), + 'title' => _('Undo Search & Replace'), + 'onclick' => "do_undo();"))); + } return HTML($toolbar, $textarea); } else { return $textarea; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |