Skip to content

Commit

Permalink
helps converted, import disabled for now
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Dec 8, 2010
1 parent 4f49e7c commit 8da51a1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 2 additions & 0 deletions import.php
Expand Up @@ -29,6 +29,8 @@

$id = required_param('id', PARAM_INT); // Course Module ID

die('Not converted to 2.0 yet, sorry');

// =========================================================================
// security checks START - only teachers edit
// =========================================================================
Expand Down
1 change: 1 addition & 0 deletions lang/en/book.php
Expand Up @@ -77,6 +77,7 @@

$string['importingchapters'] = 'Importing chapters into book';
$string['import'] = 'Import';
$string['import_help'] = 'You can import a single HTML file or every HTML file in a direcory. Relative file links are converted to absolute chapter links. Images, flash and Java are relinked too.';
$string['doimport'] = 'Import';
$string['doexport'] = 'Export';
$string['importing'] = 'Importing';
Expand Down
5 changes: 0 additions & 5 deletions lang/en/help/book/import.html

This file was deleted.

3 changes: 2 additions & 1 deletion view.php
Expand Up @@ -176,7 +176,8 @@
$tocwidth = $CFG->book_tocwidth;
}

$doimport = ($allowimport and $edit) ? '<div>(<a href="import.php?id='.$cm->id.'">'.get_string('doimport', 'book').'</a>)</div>' : '';
//$doimport = ($allowimport and $edit) ? '<div>(<a href="import.php?id='.$cm->id.'">'.get_string('doimport', 'book').'</a>)</div>' : '';
$doimport = ''; //TODO: after new file handling

/// Enable the IMS CP button
//$generateimscp = ($allowexport) ? '<a title="'.get_string('generateimscp', 'book').'" href="generateimscp.php?id='.$cm->id.'"><img class="bigicon" src="'.$OUTPUT->pix_url('generateimscp', 'mod_book').'" alt="'.get_string('generateimscp', 'book').'"></img></a>' : '';
Expand Down

0 comments on commit 8da51a1

Please sign in to comment.