Skip to content
Snippets Groups Projects
Commit c2b9771a authored by Andreas Gohr's avatar Andreas Gohr
Browse files

fix base dir for images

parent 3e2fa388
No related branches found
No related tags found
No related merge requests found
......@@ -66,6 +66,7 @@ abstract class AbstractMenu {
* output, use getItems() and build the HTML yourself
*
* @param string|false $classprefix create a class from type with this prefix, false for no class
* @return string
*/
public function getListItems($classprefix = '') {
$html = '';
......@@ -80,6 +81,7 @@ abstract class AbstractMenu {
$html .= $item->asHtmlLink(false);
$html .= '</li>';
}
return $html;
}
}
......@@ -34,7 +34,7 @@ abstract class AbstractItem {
protected $nofollow = true;
protected $replacement = '';
protected $category = 'page';
protected $svg = DOKU_BASE . 'lib/images/menu/00-default_checkbox-blank-circle-outline.svg';
protected $svg = DOKU_INC . 'lib/images/menu/00-default_checkbox-blank-circle-outline.svg';
protected $label = '';
protected $context = self::CTX_ALL;
......
......@@ -4,6 +4,6 @@ namespace dokuwiki\Menu\Item;
class Backlink extends AbstractItem {
protected $svg = DOKU_BASE . 'lib/images/menu/08-backlink_link-variant.svg';
protected $svg = DOKU_INC . 'lib/images/menu/08-backlink_link-variant.svg';
}
......@@ -52,7 +52,7 @@ class Edit extends AbstractItem {
'source' => '05-source_file-xml.svg',
);
if(isset($icons[$this->type])) {
$this->svg = DOKU_BASE . 'lib/images/menu/' . $icons[$this->type];
$this->svg = DOKU_INC . 'lib/images/menu/' . $icons[$this->type];
}
}
......
......@@ -9,7 +9,7 @@ class ImgBackto extends AbstractItem {
global $ID;
parent::__construct();
$this->svg = DOKU_BASE . 'lib/images/menu/12-back_arrow-left.svg';
$this->svg = DOKU_INC . 'lib/images/menu/12-back_arrow-left.svg';
$this->type = 'img_backto';
$this->params = array();
$this->accesskey = 'b';
......
......@@ -4,7 +4,7 @@ namespace dokuwiki\Menu\Item;
class MediaManager extends AbstractItem {
protected $svg = DOKU_BASE . 'lib/images/menu/11-mediamanager_folder-image.svg';
protected $svg = DOKU_INC . 'lib/images/menu/11-mediamanager_folder-image.svg';
/** @inheritdoc */
public function __construct() {
......
......@@ -15,7 +15,7 @@ class Revert extends AbstractItem {
}
$this->params['rev'] = $REV;
$this->params['sectok'] = getSecurityToken();
$this->svg = DOKU_BASE . 'lib/images/menu/06-revert_replay.svg';
$this->svg = DOKU_INC . 'lib/images/menu/06-revert_replay.svg';
}
}
......@@ -10,7 +10,7 @@ class Revisions extends AbstractItem {
$this->type = 'revs';
$this->params['do'] = 'revs';
$this->svg = DOKU_BASE . 'lib/images/menu/07-revisions_history.svg';
$this->svg = DOKU_INC . 'lib/images/menu/07-revisions_history.svg';
}
}
......@@ -4,7 +4,7 @@ namespace dokuwiki\Menu\Item;
class Subscribe extends AbstractItem {
protected $svg = DOKU_BASE . 'lib/images/menu/09-subscribe_email-outline.svg';
protected $svg = DOKU_INC . 'lib/images/menu/09-subscribe_email-outline.svg';
/** @inheritdoc */
public function __construct() {
......
......@@ -4,7 +4,7 @@ namespace dokuwiki\Menu\Item;
class Top extends AbstractItem {
protected $svg = DOKU_BASE . 'lib/images/menu/10-top_arrow-up.svg';
protected $svg = DOKU_INC . 'lib/images/menu/10-top_arrow-up.svg';
protected $accesskey = 't';
protected $params = array('do' => '');
protected $id = '#dokuwiki__top';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment