- Timestamp:
- 03/06/2011 19:35:18 (11 years ago)
- Branches:
- master
- Children:
- 5b7eecf
- Parents:
- 53f84f8
- git-author:
- Eric van der Vlist <vdv@dyomedea.com> (03/06/2011 19:35:18)
- git-committer:
- Eric van der Vlist <vdv@dyomedea.com> (03/06/2011 19:35:18)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
wordpress/plugins/owark/owark.php
r53f84f8 r3fe3b36 79 79 */ 80 80 function sanity_checks(){ 81 82 // Install or upgrade tables if needed 81 83 82 84 $installed_ver = get_option( "owark_db_version" ); … … 99 101 } 100 102 103 // Check that the broken link checker is installed 104 105 $blc = 'not-found'; 106 foreach(get_plugins() as $plugin_file => $plugin_data) { 107 if ($plugin_data['Title'] == 'Broken Link Checker') { 108 if (is_plugin_active($plugin_file)) { 109 $blc = 'active'; 110 } else { 111 $blc = 'inactive'; 112 } 113 } 114 } 115 116 if ($blc == 'inactive') { 117 $this->notices = $this->notices . "<div class=\"updated fade\"><p><strong>Please activate the Broken Link Checker so that the Open Web Archive can be fully functional.</strong></p></div>"; 118 } else if ($blc == 'not-found') { 119 $this->notices = $this->notices . "<div class=\"error fade\"><p><strong>The Open Web Archive relies on the <a href=\"http://w-shadow.com/blog/2007/08/05/broken-link-checker-for-wordpress/\">Broken Link Checker</a>. Please install this plugin!</strong></p></div>"; 120 } 101 121 102 122 if ($this->notices != '') {
Note: See TracChangeset
for help on using the changeset viewer.