23 Commits

Author SHA1 Message Date
Jetha Chan
846ffe600c MDL-42575 mod_page: revert heading option display
Reverted heading option display for page resource; made sure to not re-introduce class issues.
2014-03-21 15:42:34 +08:00
Damyon Wiese
221c125cb3 MDL-44319 phpdocs mod_page: Remove @subpackage tags and add @category 2014-02-24 15:04:33 +08:00
Sam Hemelryk
96930d5b08 MDL-41179 mod_page: unified @package use 2014-02-16 11:53:09 +13:00
Rossiani Wijaya
4e5f53e90e MDL-41566 page resource: fix page heading levels.
Also removing printheading options setting.
2013-09-09 10:19:11 +08:00
Petr Skoda
caee6e6c26 MDL-32251 E_STRICT fixes part 3 2012-03-29 15:24:30 +02:00
Eloy Lafuente (stronk7)
1f256ec5ca Merge branch 'MDL-30982-docblock-backup' of git://github.com/mudrd8mz/moodle 2012-02-29 00:47:10 +01:00
David Mudrak
63baccbc54 MDL-30982 Improving phpDocs for the classes that extend backup_activity_task 2012-02-27 11:59:42 +01:00
David Mudrak
cb3ef22065 MDL-29256 Fixed incorrect calculation of contentformat
Legacy Resource modules of the type Web page force the HTML format for
their content. The format stored in the reference field is valid only
for legacy resources of the type Plain text page. See page_20_migrate()
function.
2012-02-21 11:19:57 +01:00
David Mudrak
baa44e3d3d MDL-27448 Simplified migration of the files embedded in the resources HTML texts 2011-06-04 21:13:56 +02:00
David Mudrak
aa97e0dd52 MDL-22414 File manager allows to set explicit sortorder and accepts filepaths not ending with a slash
We want to set migrated content file in the File module as a main file.
Main files are files with sortorder set to 1. Therefore the file manager
must provide a way to set the sortorder property of the new file record.

The second change allowing filepaths not ending with slash is a helper
as we can easily use dirname() as a value (see the usage in the next
commits). Not providing the dirname() was a bug as the reference to a
file in the HTML text did not respect the migrated file path.
2011-06-04 20:02:03 +02:00
David Mudrak
9b2ab50d27 MDL-27448 Page module conversion improved 2011-06-04 18:28:35 +02:00
David Mudrak
9e3e8c8004 MDL-27448 Changed the interface of resource module successors to make it clear they are a special case 2011-06-04 16:11:59 +02:00
David Mudrak
48fcecffb6 MDL-27448 Page module conversion fixed and improved
The embedded files are now converted into the proper file area on the
conversion. The previous usage of $CFG->wwwroot/file.php was wrong for two
reasons: (1) the moodle.xml does not (should not) contain these links but
$@FILEPHP@$ placeholder and (2) even if it did, we could not compare to
our wwwroot but to the original wwwroot.

Also fixed the actual list of fields being written into page.xml - the
previous version included legacy fields (like type, reference and
friends).
2011-06-04 14:43:04 +02:00
David Mudrak
904888daee MDL-27448 Resource intro (legacy summary) field converted consistently by the resource handler 2011-06-04 13:24:03 +02:00
Andrew Davis
5da3af58a0 MDL-27448 resource conversion support to restore 1.9 backup to 2.1 2011-06-04 13:24:03 +02:00
Eloy Lafuente
0f66acede0 MDL-22135 - logs restore, course and activities + cleanup 2010-11-11 19:46:04 +00:00
Petr Skoda
034ef76129 improved spelling 2010-09-18 12:31:20 +00:00
Eloy Lafuente
82793abdeb MDL-23479 backup - minor fixes to page & url 2010-07-31 22:28:21 +00:00
Dan Marsden
6751fcbd80 MDL-23479 missed check for intro files. 2010-07-28 01:57:12 +00:00
Dan Marsden
6517017975 MDL-23479 Page Restore code - fix comments in label code. 2010-07-28 01:35:56 +00:00
Petr Skoda
2c49daf789 MDL-21249 + MDL-16089 finalizing the mod/page module 2010-07-15 15:45:20 +00:00
Petr Skoda
64f93798d4 MDL-22950 adding new component column to the files table, unfortunately this change requires changes in all 2.0dev code, please review all custom code that was already upgraded to 2.0; fixing multiple problems and regressions in mod/assignment 2010-07-03 13:37:13 +00:00
Eloy Lafuente
7db1f6b99f MDL-22151 backup - added page module backup 2010-05-04 21:58:11 +00:00