Skip to content
Snippets Groups Projects
Commit efb56945 authored by Laurent's avatar Laurent
Browse files

dev #25752 fix fatal error helpController test

parent d3fe9710
Branches
Tags
4 merge requests!1659Master,!1587Master,!1581Dev#25752 2150 explo piwik,!1574Dev#25752 2150 explo piwik
......@@ -22,8 +22,8 @@
class HelpController extends ZendAfi_Controller_Action {
public function cookiesAction() {
$this->view->ga_warning = "";
if (Class_AdminVar::getGoogleAnalyticsId()) {
if((new Class_AdminVar_JsStat())->isGoogleAnalytics())
$this->view->ga_warning = $this->view->help_GoogleAnalyticsWarning();
}
}
}
......@@ -16,11 +16,11 @@
*
* You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
* along with BOKEH; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
class ZendAfi_View_Helper_Help_GoogleAnalyticsWarning extends Zend_View_Helper_HtmlElement {
public function help_googleAnalyticsWarning() {
return $this->view->tag('p', $this->view->_('Pour les mesures de trafic dites de “Webanalytics”,
return $this->view->tag('p', $this->view->_('Pour les mesures de trafic dites de “Webanalytics”,
notre site utilise les services de Google Analytics. Pour bloquer l’utilisation des données par Google Analytics : https://tools.google.com/dlpage/gaoptout'));
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment