Dotclear

Ticket #2007 (closed defect: fixed)

Opened 11 years ago

Last modified 11 years ago

Use of $core->adminurl on public side

Reported by: nikrou Owned by: team
Priority: normal Milestone: 2.7
Component: module:core Version: dev
Severity: normal Keywords:
Cc:

Description

When I post a comment on public side I've got that warning : PHP Notice: Undefined property: dcCore::$adminurl in dotclear/plugins/antispam/inc/class.dc.spamfilter.php

And that fatal error : PHP Fatal error: Call to a member function decode() on null in dotclear/plugins/antispam/inc/class.dc.spamfilter.php on line 42

The line : $this->gui_url = $core->adminurl->decode('admin.plugin.antispam',array('f' => get_class($this)));

adminurl is defined in inc/admin/prepend.php that is not loaded on public side.

Change History

comment:1 Changed 11 years ago by franck

Argh, un effet de bord du passage à adminurl. Je corrige…

comment:2 Changed 11 years ago by franck <carnet.franck.paul@…>

  • Status changed from new to closed
  • Resolution set to fixed

(In [33adbf6f35eb]) Should not use adminurl class outside admin! Fixes #2007

comment:3 Changed 11 years ago by franck

  • Milestone changed from A definir to 2.7
Note: See TracTickets for help on using tickets.

Sites map