Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
ddccca89
Commit
ddccca89
authored
Feb 12, 2015
by
Son Nguyen
Committed by
Gerrit Code Review
Feb 12, 2015
Browse files
Merge "Stopping the 'skins' tab showing for dashboard (Bug #1419959)"
parents
5e7883ca
c33bb9ef
Changes
4
Show whitespace changes
Inline
Side-by-side
htdocs/lib/db/upgrade.php
View file @
ddccca89
...
...
@@ -3897,5 +3897,10 @@ function xmldb_core_upgrade($oldversion=0) {
add_field
(
$table
,
$field
);
}
if
(
$oldversion
<
2015021000
)
{
// Need to update any dashboard pages to not have skins
execute_Sql
(
"UPDATE
{
view
}
SET skin = NULL WHERE id IN ( SELECT id FROM
{
view
}
WHERE type = 'dashboard' AND skin IS NOT NULL)"
);
}
return
$status
;
}
htdocs/lib/version.php
View file @
ddccca89
...
...
@@ -16,7 +16,7 @@ $config = new stdClass();
// See https://wiki.mahara.org/index.php/Developer_Area/Version_Numbering_Policy
// For upgrades on stable branches, increment the version by one. On master, use the date.
$config
->
version
=
2015020
2
00
;
$config
->
version
=
201502
1
000
;
$config
->
series
=
'15.04'
;
$config
->
release
=
'15.04dev'
;
$config
->
minupgradefrom
=
2009022600
;
...
...
htdocs/theme/default/templates/view/editviewtabs.tpl
View file @
ddccca89
...
...
@@ -19,7 +19,7 @@
</a>
</li>
{
if
!
$issitetemplate
}
{
if
can_use_skins
(
null
,
false
,
$issiteview
)
}
{
if
can_use_skins
(
null
,
false
,
$issiteview
)
&&
$viewtype
!=
'dashboard'
}
<li
{
if
$selected
==
'skin'
}
class=
"current-tab"
{/
if
}
>
<a
{
if
$selected
==
'skin'
}
class=
"current-tab"
{/
if
}
href=
"
{
$WWWROOT
}
view/skin.php?id=
{
$viewid
}{
if
$new
}
&new=1
{/
if
}
"
>
{
str
tag
=
chooseskin
section
=
skin
}
<span
class=
"accessible-hidden"
>
(
{
str
tag
=
tab
}{
if
$selected
==
'skin'
}
{
str
tag
=
selected
}{/
if
}
)
</span>
...
...
htdocs/theme/raw/templates/view/editviewtabs.tpl
View file @
ddccca89
...
...
@@ -4,7 +4,7 @@
<li
{
if
$selected
==
'layout'
}
class=
"current-tab"
{/
if
}
><a
{
if
$selected
==
'layout'
}
class=
"current-tab"
{/
if
}
href=
"
{
$WWWROOT
}
view/layout.php?id=
{
$viewid
}{
if
$new
}
&new=1
{/
if
}
"
>
{
str
tag
=
editlayout
section
=
view
}
<span
class=
"accessible-hidden"
>
(
{
str
tag
=
tab
}{
if
$selected
==
'layout'
}
{
str
tag
=
selected
}{/
if
}
)
</span></a></li>
<li
{
if
$selected
==
'content'
}
class=
"current-tab"
{/
if
}
><a
{
if
$selected
==
'content'
}
class=
"current-tab"
{/
if
}
href=
"
{
$WWWROOT
}
view/blocks.php?id=
{
$viewid
}{
if
$new
}
&new=1
{/
if
}
"
>
{
str
tag
=
editcontent
section
=
view
}
<span
class=
"accessible-hidden"
>
(
{
str
tag
=
tab
}{
if
$selected
==
'content'
}
{
str
tag
=
selected
}{/
if
}
)
</span></a></li>
{
if
!
$issitetemplate
}
{
if
can_use_skins
(
null
,
false
,
$issiteview
)
}
<li
{
if
$selected
==
'skin'
}
class=
"current-tab"
{/
if
}
><a
{
if
$selected
==
'skin'
}
class=
"current-tab"
{/
if
}
href=
"
{
$WWWROOT
}
view/skin.php?id=
{
$viewid
}{
if
$new
}
&new=1
{/
if
}
"
>
{
str
tag
=
chooseskin
section
=
skin
}
<span
class=
"accessible-hidden"
>
(
{
str
tag
=
tab
}{
if
$selected
==
'skin'
}
{
str
tag
=
selected
}{/
if
}
)
</span></a></li>
{/
if
}
{
if
can_use_skins
(
null
,
false
,
$issiteview
)
&&
$viewtype
!=
'dashboard'
}
<li
{
if
$selected
==
'skin'
}
class=
"current-tab"
{/
if
}
><a
{
if
$selected
==
'skin'
}
class=
"current-tab"
{/
if
}
href=
"
{
$WWWROOT
}
view/skin.php?id=
{
$viewid
}{
if
$new
}
&new=1
{/
if
}
"
>
{
str
tag
=
chooseskin
section
=
skin
}
<span
class=
"accessible-hidden"
>
(
{
str
tag
=
tab
}{
if
$selected
==
'skin'
}
{
str
tag
=
selected
}{/
if
}
)
</span></a></li>
{/
if
}
<li
class=
"displaypage"
><a
href=
"
{
$displaylink
}
"
>
{
str
tag
=
displayview
section
=
view
}
»
</a></li>
{
if
$edittitle
||
$viewtype
==
'profile'
}
<li
class=
"sharepage"
><a
href=
"
{
$WWWROOT
}
view/access.php?id=
{
$viewid
}{
if
$new
}
&new=1
{/
if
}
"
>
{
str
tag
=
shareview
section
=
view
}
»
</a></li>
{/
if
}
{/
if
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment