Skip to content

Commit

Permalink
Merge pull request #27 from SE-Stuttgart/dev
Browse files Browse the repository at this point in the history
3.3
  • Loading branch information
MakinZeel authored Oct 12, 2024
2 parents 91365c1 + c979396 commit 56e316e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion block_booksearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

use block_booksearch\data\data;
use block_booksearch\local\data;

defined('MOODLE_INTERNAL') || die();

Expand Down
9 changes: 3 additions & 6 deletions classes/external/search_book_content.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
use external_single_structure;
use external_value;

use block_booksearch\data\data;
use block_booksearch\search\search;
use block_booksearch\local\data;
use block_booksearch\local\search;
use context_course;
use invalid_parameter_exception;
use stdClass;
Expand Down Expand Up @@ -94,7 +94,7 @@ public static function execute_returns() {
* array of objects each describing one search term occurance with text snippet and location data.
*/
public static function execute($courseid, $searchstring, $contextlength) {
global $CFG, $DB;
global $USER;
require_once(__DIR__ . '/../../locallib.php');

// Validate parameter.
Expand All @@ -107,9 +107,6 @@ public static function execute($courseid, $searchstring, $contextlength) {
]
);

// If an exception is thrown in the below code, all DB queries in this code will be rollback.
$transaction = $DB->start_delegated_transaction();

$courseid = $params['courseid'];
$searchstring = $params['searchstring'];
$contextlength = $params['contextlength'];
Expand Down
2 changes: 1 addition & 1 deletion classes/data/data.php → classes/local/data.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

namespace block_booksearch\data;
namespace block_booksearch\local;

use context_module;
use moodle_url;
Expand Down
2 changes: 1 addition & 1 deletion classes/search/search.php → classes/local/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

namespace block_booksearch\search;
namespace block_booksearch\local;

use stdClass;

Expand Down
4 changes: 2 additions & 2 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
*/
defined('MOODLE_INTERNAL') || die();

$plugin->version = 2024081900; // The current plugin version (Date: YYYYMMDDHH).
$plugin->version = 2024101206; // The current plugin version (Date: YYYYMMDDHH).
$plugin->requires = 2020061510; // Requires this Moodle version.
$plugin->component = 'block_booksearch'; // Full name of the plugin (used for diagnostics).
$plugin->release = '3.2.0';
$plugin->release = '3.3';
$plugin->maturity = MATURITY_STABLE;

0 comments on commit 56e316e

Please sign in to comment.