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
9fb9d801
Commit
9fb9d801
authored
Jul 07, 2016
by
Aaron Wells
Committed by
Gerrit Code Review
Jul 07, 2016
Browse files
Merge "Bug 1591052: remove dataroot/smarty directory"
parents
fceb1bf3
128a0249
Changes
4
Show whitespace changes
Inline
Side-by-side
htdocs/admin/upgrade.php
View file @
9fb9d801
...
...
@@ -99,18 +99,8 @@ $failureicon = 'icon icon-exclamation-triangle left';
$warningicon
=
'icon icon-exclamation-triangle left'
;
// Remove all files in the smarty and dwoo caches
// TODO post 1.2 remove the smarty part
// Remove all files in the dwoo cache
require_once
(
'file.php'
);
$basedir
=
get_config
(
'dataroot'
)
.
'smarty/compile/'
;
$dh
=
new
DirectoryIterator
(
$basedir
);
foreach
(
$dh
as
$themedir
)
{
if
(
$themedir
->
isDot
())
continue
;
$themedirname
=
$basedir
.
$themedir
->
getFilename
();
rmdirr
(
$themedirname
);
clearstatcache
();
check_dir_exists
(
$themedirname
);
}
$basedir
=
get_config
(
'dataroot'
)
.
'dwoo/compile/'
;
$dh
=
new
DirectoryIterator
(
$basedir
);
foreach
(
$dh
as
$themedir
)
{
...
...
htdocs/lib/db/upgrade.php
View file @
9fb9d801
...
...
@@ -4516,5 +4516,11 @@ function xmldb_core_upgrade($oldversion=0) {
change_field_precision
(
$table
,
$field
);
}
if
(
$oldversion
<
2016070700
)
{
require_once
(
'file.php'
);
log_debug
(
'Remove obsolete dataroot/smarty directory'
);
rmdirr
(
get_config
(
'dataroot'
)
.
'smarty'
);
}
return
$status
;
}
htdocs/lib/mahara.php
View file @
9fb9d801
...
...
@@ -143,8 +143,7 @@ function ensure_sanity() {
}
if
(
!
check_dir_exists
(
get_config
(
'dataroot'
)
.
'smarty/compile'
)
||
!
check_dir_exists
(
get_config
(
'dataroot'
)
.
'smarty/cache'
)
||
!
check_dir_exists
(
get_config
(
'dataroot'
)
.
'dwoo'
)
||
!
check_dir_exists
(
get_config
(
'dataroot'
)
.
'temp'
)
||
!
check_dir_exists
(
get_config
(
'dataroot'
)
.
'langpacks'
)
||
!
check_dir_exists
(
get_config
(
'dataroot'
)
.
'htmlpurifier'
)
||
...
...
htdocs/lib/version.php
View file @
9fb9d801
...
...
@@ -16,7 +16,7 @@ $config = new stdClass();
// See https://wiki.mahara.org/wiki/Developer_Area/Version_Numbering_Policy
// For upgrades on stable branches, increment the version by one. On master, use the date.
$config
->
version
=
2016070
5
00
;
$config
->
version
=
2016070
7
00
;
$config
->
series
=
'16.10'
;
$config
->
release
=
'16.10dev'
;
$config
->
minupgradefrom
=
2012080604
;
...
...
Write
Preview
Markdown
is supported
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