Remove the module_exists() as it is deprecated as per https://www.drupal.org/node/2205673.

submitted the patch for the same.

Comments

tstoeckler’s picture

Status: Needs review » Needs work
+++ b/core/scripts/generate-d7-content.sh
@@ -171,7 +171,7 @@
-  else if (module_exists('blog')) {
+  else if (\Drupal::moduleHandler()->moduleExists('blog')) {

Even though it is very strange, that script should actually be run on a D7 code-base, so let's leave that alone. :-)

joshi.rohit100’s picture

Status: Needs work » Needs review
StatusFileSize
new758 bytes
new323 bytes

updated patch as per #1

tstoeckler’s picture

Status: Needs review » Reviewed & tested by the community

Thanks!

alexpott’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: -@depreacted +@deprecated, +Needs reroll
git ac https://www.drupal.org/files/issues/remove-module-exists-2.patch
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   758  100   758    0     0   1503      0 --:--:-- --:--:-- --:--:--  9132
error: patch failed: core/includes/bootstrap.inc:1181
error: core/includes/bootstrap.inc: patch does not apply
joshi.rohit100’s picture

Status: Needs work » Needs review
Issue tags: -Needs reroll
StatusFileSize
new743 bytes

rerolled the patch.
Please review now.

ParisLiakos’s picture

Status: Needs review » Reviewed & tested by the community
webchick’s picture

Status: Reviewed & tested by the community » Fixed

Looks like this is covered by the change record in https://www.drupal.org/node/1894902.

Committed and pushed to 8.x. Thanks!

  • webchick committed 17e7dba on 8.x
    Issue #2300831 by joshi.rohit100: Remove module_exists() as it is...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.