-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
49 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
* | ||
* Copyright (c) 2013-2015 (original work) Open Assessment Technologies SA (under the project TAO-PRODUCT); | ||
* Copyright (c) 2013-2016 (original work) Open Assessment Technologies SA (under the project TAO-PRODUCT); | ||
* | ||
* @author Jérôme Bogaerts <[email protected]> | ||
* @license GPLv2 | ||
|
@@ -270,9 +270,9 @@ public function saveToString($formatOutput = true) | |
*/ | ||
protected function saveImplementation($uri = '', $formatOutput = true) | ||
{ | ||
$assessmentTest = $this->getDocumentComponent(); | ||
$qtiComponent = $this->getDocumentComponent(); | ||
|
||
if (!empty($assessmentTest)) { | ||
if (!empty($qtiComponent)) { | ||
$this->setDomDocument(new DOMDocument('1.0', 'UTF-8')); | ||
|
||
if ($formatOutput == true) { | ||
|
@@ -323,7 +323,7 @@ protected function saveImplementation($uri = '', $formatOutput = true) | |
throw new XmlStorageException($msg, XmlStorageException::VERSION, $e); | ||
} | ||
} else { | ||
$msg = "The Assessment Document cannot be saved. No AssessmentTest object provided."; | ||
$msg = "The document cannot be saved. No document component object to be saved."; | ||
throw new XmlStorageException($msg, XmlStorageException::WRITE); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters