diff --git a/admin/filters.php b/admin/filters.php
index 1b82509041a..4ca0de8dae3 100644
--- a/admin/filters.php
+++ b/admin/filters.php
@@ -253,7 +253,7 @@ function get_table_row($filterinfo, $isfirstrow, $islastactive, $applytostrings)
// Re-order
$updown = '';
- $spacer = '
';
+ $spacer = ' ';
if ($filterinfo->active != TEXTFILTER_DISABLED) {
if (!$isfirstrow) {
$updown .= action_icon(action_url($filter, 'up'), 'up', get_string('up'));
diff --git a/admin/generator.php b/admin/generator.php
index 0a9bbe95e46..5447148fd81 100755
--- a/admin/generator.php
+++ b/admin/generator.php
@@ -1184,7 +1184,6 @@ class generator_web extends generator {
public function setup() {
global $CFG;
- $CFG->pixpath = $CFG->wwwroot. '/pix';
$this->mform = new generator_form();
$this->do_generation = optional_param('do_generation', false, PARAM_BOOL);
@@ -1249,7 +1248,6 @@ class fake_form {
class generator_form extends moodleform {
function definition() {
global $generator, $CFG;
- $CFG->pixpath = $CFG->wwwroot. '/pix';
$mform =& $this->_form;
$mform->addElement('hidden', 'do_generation', 1);
diff --git a/admin/modules.php b/admin/modules.php
index 97646b53216..2f125de65c5 100644
--- a/admin/modules.php
+++ b/admin/modules.php
@@ -210,7 +210,7 @@
foreach ($modulebyname as $modulename => $module) {
// took out hspace="\10\", because it does not validate. don't know what to replace with.
- $icon = "
modpixpath/$module->name/icon.gif\" class=\"icon\" alt=\"\" />";
+ $icon = "
mod_icon_url('icon', $module->name) . "\" class=\"icon\" alt=\"\" />";
$delete = "name&sesskey=".sesskey()."\">$strdelete";
diff --git a/admin/qtypes.php b/admin/qtypes.php
index f4aebc3f96b..4cd107e1a1c 100644
--- a/admin/qtypes.php
+++ b/admin/qtypes.php
@@ -229,7 +229,7 @@
$rowclass = 'dimmed_text';
}
} else {
- $icons = '
';
+ $icons = '';
}
// Move icons.
@@ -275,14 +275,14 @@ function enable_disable_button($qtypename, $createable) {
}
function icon_html($action, $qtypename, $icon, $alt, $tip) {
- global $CFG;
+ global $OUTPUT;
if ($tip) {
$tip = 'title="' . $tip . '" ';
}
$html = '
';
+ $columnicon = '
';
+ $columnicon = '
';
+ '
';
+ '
';
+ '
';
+ '

';
+ echo '
';
+ echo '
';
+ echo '
';
- $this->_advancedHTML = '
';
- $this->setRequiredNote(get_string('somefieldsrequired', 'form', '
'));
+ $this->_reqHTML = '
old_icon_url('spacer') . '" width="'. $sizex .'" height="'. $sizey .'"'.
' class="png" style="width: '. $sizex .'px; height: '. $sizey .'px; '.
' filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='.
"'$url', sizingMethod='scale') ".
@@ -4192,7 +4192,7 @@ function navmenu($course, $cm=NULL, $targetwindow='self') {
}
$menu[$url] = $localname;
if (empty($THEME->navmenuiconshide)) {
- $menustyle[$url] = 'style="background-image: url('.$CFG->modpixpath.'/'.$mod->modname.'/icon.gif);"'; // Unfortunately necessary to do this here
+ $menustyle[$url] = 'style="background-image: url('.$OUTPUT->mod_icon_url('icon', $mod->modname) . ');"'; // Unfortunately necessary to do this here
}
$previousmod = $mod;
}
@@ -4318,7 +4318,7 @@ function navmenulist($course, $sections, $modinfo, $strsection, $strjumpto, $wid
$class = 'activity '.$mod->modname;
$class .= ($cmid == $mod->id) ? ' selected' : '';
$menu[] = '
';
+ $linkobject = '
';
+ $linkobject = '
';
+ $linkobject = '
';
+ $linkobject = '';
$buttonlink = $ME.'?'.htmlspecialchars(feedback_edit_get_default_query($id, $do_show).'&movehere='.$moveposition);
echo '
-
+ | ';
$buttonlink = $ME.'?'.htmlspecialchars(feedback_edit_get_default_query($id, $do_show).'&movehere='.$moveposition);
echo '
-
+ |