Skip to content
GitLab
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
78cd7254
Commit
78cd7254
authored
May 21, 2009
by
Nigel McNie
Browse files
Give the Views more time on the progress bar as they're proving to take a while to export.
parent
d8ec36bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/export/html/lib.php
View file @
78cd7254
...
...
@@ -154,7 +154,7 @@ class PluginExportHtml extends PluginExport {
// Second pass: actually dump data for active export plugins
$progressstart
=
25
;
$progressend
=
6
0
;
$progressend
=
5
0
;
$i
=
0
;
foreach
(
$exportplugins
as
$plugin
)
{
$this
->
notify_progress_callback
(
intval
(
$progressstart
+
(
++
$i
/
$plugincount
)
*
(
$progressend
-
$progressstart
)),
'Exporting data for '
.
$plugin
);
...
...
@@ -168,7 +168,7 @@ class PluginExportHtml extends PluginExport {
}
// Get the view data
$this
->
notify_progress_callback
(
6
5
,
'Exporting Views'
);
$this
->
notify_progress_callback
(
5
5
,
'Exporting Views'
);
$this
->
dump_view_export_data
();
if
(
!
$this
->
exportingoneview
)
{
...
...
@@ -292,9 +292,14 @@ class PluginExportHtml extends PluginExport {
* Dumps all views into the HTML export
*/
private
function
dump_view_export_data
()
{
$progressstart
=
55
;
$progressend
=
75
;
$i
=
0
;
$viewcount
=
count
(
$this
->
views
);
$rootpath
=
(
$this
->
exportingoneview
)
?
'./'
:
'../../'
;
$smarty
=
$this
->
get_smarty
(
$rootpath
);
foreach
(
$this
->
views
as
$viewid
=>
$view
)
{
$this
->
notify_progress_callback
(
intval
(
$progressstart
+
(
++
$i
/
$viewcount
)
*
(
$progressend
-
$progressstart
)),
"Exporting Views (
$i
/
$viewcount
)"
);
$smarty
->
assign
(
'page_heading'
,
$view
->
get
(
'title'
));
$smarty
->
assign
(
'viewdescription'
,
$view
->
get
(
'description'
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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