67 Commits

Author SHA1 Message Date
Sujith Haridasan
73d604369d MDL-71062 core: Step 1 deprecation of print_error function 2022-07-13 08:20:54 +05:30
Amaia Anabitarte
9b5367b306 MDL-72907 core_repository: Fix enable_plugin function 2021-11-16 09:20:56 +01:00
Sara Arjona
96a16c14a0 MDL-72720 repository: Implement enable_plugin() method
This one was tricky because it works slightly different and requires
a repository instance will be created if it doesn't exist.
For now I've implemented the easiest approach because it's not
possible to create instances (some extra parameters should be added
to the method in order to support it).
2021-10-15 13:00:04 +02:00
Paul Holden
052ba69f79 MDL-71323 admin: consistently indicate disabled state of plugins.
In order to be consistent with the majority of plugin management
pages, add the `dimmed_text` class to table rows to indicate that
a given plugin is disabled.
2021-07-06 10:14:13 +01:00
Eloy Lafuente (stronk7)
f4feabb83f MDL-66968 php74: array_key_exists() for objects is deprecated
Replace it for correct property_exists() when the element
being inspected is a property of object/class.

Amended and squased changes:
- keep mongo unmodified. The information is array, hence correct.
- fix a couple of messaging phpdocs that were incorrect.

Amended take#2:
- As far as mongo resturns BSONDocument that is ArrayObject, aka
implements ArrayAccess, we have decided to explicitly cast results
to array so existing array_key_exists() and other accesses will
continue working the same.
2019-10-25 00:49:04 +02:00
Charles YVANES
458453cee0 MDL-29895 core: removed require_login() when not needed 2018-09-10 11:22:50 +02:00
Damyon Wiese
663640f5b3 MDL-40759 icons: convert uses of pix_url to pix_icon
Also change filepicker to use scaled svgs instead of sets of custom pngs. The svgs are taken from font-awesome.
2017-03-17 15:52:17 +08:00
Russell Smith
1fcf0ca8a5 MDL-35628 performance: Remove dirname() where possible.
dirname() is a slow function compared with __DIR__ and using
'/../'.  Moodle has a large number of legacy files that are included
each time a page loads and is not able to use an autoloader as it is
functional code.  This allows those required includes to perform as
best as possible in this situation.
2016-06-10 08:06:49 +10:00
Marina Glancy
a1ec48c9e8 MDL-45619 repository: corrections to uninstall, display link 2015-03-04 18:42:16 -05:00
Adrian Greeve
40a473d5e7 MDL-42234 - Repositories: Fix undefined variable notice when no repositories are enabled. 2013-10-15 10:40:23 +08:00
Petr Škoda
e87214bda7 MDL-42078 multiple uninstall improvements and cleanup
Includes:
* update checker refactored to \core\update\ namespace
* plugininfo classes refactored to \core\plugininfo\ namespace
* plugin_manager renamed to core_plugin_manager
* redirect back to original page after plugin uninstall
* fixed assign subplugin uninstall
* move assign subplugins under the assignment in admin tree
* fixed plugininfo for all question related plugin types
* auth uninstall support
* added missing block dependencies
* added theme uninstall
* subplugin types are following the plugin on plugin overview page
* several performance improvements in plugin manager
* new warnigns when plugininfo are outdated or missing
* multiple fixes and other improvements
2013-10-07 13:10:36 +02:00
Petr Škoda
bde002b81a MDL-41437 rework plugin_manager caching and version info in blocks and modules
This patch includes:

* version column removed from modules table, now using standard config, this allows decimal version for modules
* version column removed from block table, now using standard config, this allows decimal version for blocks
* module version.php can safely use $plugins instead of module
* new plugin_manager bulk caching, this should help with MUC performance when logged in as admin
* all missing plugins are now in plugin overview (previously only blocks and modules)
* simplified code and improved coding style
* reworked plugin_manager unit tests - now using real plugins instead of mocks
* unit tests now fail if any plugin does not contain proper version.php file
* allow uninstall of deleted filters
2013-09-22 21:25:26 +02:00
Matteo Scaramuccia
9b64ec4dae MDL-29218 Repository: Hide the repo if repository::plugin_init returns false 2013-09-02 23:09:20 +02:00
Petr Škoda
bd3b3bba9f MDL-40220 use new core_component::get_plugin_list() 2013-07-16 22:36:11 +02:00
Marina Glancy
cfb713519d MDL-34346 Correctly set repository current context 2013-04-08 11:00:22 +10:00
David Mudrák
ad3ed98b05 MDL-34401 Replace ad-hoc plugin request caches with proper application caches
Data cached in these caches change only at well defined places (during
need for upgrade checks, at the plugin management screen etc). So it
makes sense to use proper application caches instead of request caches.

This saves couple of database queries at almost every page in Moodle.
2013-03-11 12:48:53 +01:00
Rossiani Wijaya
f0e3fbb5dd MDL-36553 admin settings: removed commented out code and add generaltable class to frontpage filter settings 2013-01-14 10:09:52 +08:00
Rossiani Wijaya
8be244b2e2 MDL-36553 Admin settings: make tables class consistent throughout admin plugins setting 2013-01-14 10:09:51 +08:00
Rossiani Wijaya
aa414527a4 MDL-34552 accessibility compliance for admin: Add forform input text and select tag 2012-07-31 16:31:47 +08:00
Dan Poltawski
0cbeea2b96 Merge branch 'MDL-34455-master-integration' of git://github.com/FMCorz/moodle 2012-07-24 16:01:00 +08:00
Frederic Massart
bf006d2c15 MDL-34455 Libraries: Replaced deprecated get_context_instance() 2012-07-23 14:33:02 +08:00
Rajesh Taneja
405aca3532 MDL-32942 libraries: Replaced deprecated PARAM_ACTION and PARAM_FORMAT with PARAM_ALPHANUMEXT 2012-07-19 15:46:10 +08:00
Dan Poltawski
49957d3858 MDL-28666 admin/repository: use PARAM_BOOL for booleans. 2012-05-21 18:21:25 +08:00
Dongsheng Cai
6723372514 MDL-28666 Extends repository to support references
1. Allow repository to create references to external contents
2. Extends files API to handle file references
3. Generic file caching
4. Backup/restore file references
5. Download external contents if repository uninstalled
6. Allow filepicker to display iframe
7. PHPUnit test suits
2012-05-21 11:57:51 +08:00
Sam Hemelryk
3211569a6a Revert "MDL-30843 and MDL-30842 - accessibility compliance: Add <label> for form input text and select tag"
This reverts commit f9f281b8fee75c2416d71bae7583fd026b9ccabb.
2012-04-11 17:18:58 +12:00
Rossiani Wijaya
f9f281b8fe MDL-30843 and MDL-30842 - accessibility compliance: Add <label> for form input text and select tag 2012-03-30 16:26:58 +08:00
Sam Marshall
9d81733d4c Admin MDL-23244 Portfolio/repo admin pages use nested forms, which are illegal HTML and cause first dropdown on page to break 2010-11-08 17:12:03 +00:00
Dongsheng Cai
d7497b1283 "MDL-13766, fixed function call" 2010-08-03 07:16:33 +00:00
Dongsheng Cai
a5adfa2658 MDL-23072, properly localised repository instance name 2010-07-27 09:03:54 +00:00
Martin Dougiamas
7969834463 admin/repository MDL-15402 Checking in code from Mark Nelson @ Pukunui.com.au. Thanks, Mark and Shane! This patch updates the repository admin interface to look more like Filters management 2010-04-30 08:03:32 +00:00
Petr Skoda
fe9d7318b5 MDL-22054 fixed missing strings and some really annoying redirects 2010-04-11 09:41:25 +00:00
Petr Skoda
61ef8f9f88 MDL-20204 removing deprecated admin headers 2010-03-31 08:05:53 +00:00
Dongsheng Cai
7c5c69d6dc "MDL-13766, improve repository admin page" 2010-03-10 03:24:14 +00:00
Dongsheng Cai
b21c6b13de "MDL-13766, improve repository settings" 2010-03-09 08:18:04 +00:00
Dongsheng Cai
3b8e973833 "MDL-13766, fixed theme coding error" 2010-03-04 06:44:16 +00:00
Petr Skoda
24eb994795 MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 11:14:50 +00:00
dongsheng
b3efb4cfd4 "MDL-13766, delete config if checkbox element is unchecked" 2009-10-08 09:01:34 +00:00
nicolasconnault
414a4a91b1 MDL-19787 upgraded calls to print_table, print_single_button, print_user_picture, print_container* and notice_yesno 2009-08-20 08:39:07 +00:00
nicolasconnault
73d6f52f6a MDL-19787 Converted all print_footer() calls 2009-08-06 14:12:46 +00:00
nicolasconnault
2fff8846f2 MDL-19787 Migrated calls to print_heading 2009-08-06 08:17:12 +00:00
dongsheng
abdcded6c7 "MDL-13766, use OUTPUT to print box" 2009-07-09 07:17:18 +00:00
dongsheng
93e9aa2792 "MDL-18520, file system, supported choose a subdirectory" 2009-06-30 09:10:42 +00:00
tjhunt
ad5d5997ed moodle_page: MDL-12212 more ->pagepaths to kill 2009-05-06 08:43:51 +00:00
dongsheng
8ef19a1ede "REPOSITORY/MDL-17466, display which plugin is valid" 2009-04-01 05:47:14 +00:00
dongsheng
3a90e17e41 "REPOSITORY/MDL-17466, display which plugin is valid" 2009-04-01 05:40:37 +00:00
dongsheng
60c366e8a6 "REPOSITORY/MDL-13766, improve create function" 2009-03-05 05:40:56 +00:00
dongsheng
40dd60d3b7 "REPOSITORY/MDL-13766, allow use repository name with numbers in it" 2009-01-09 03:20:05 +00:00
dongsheng
5c1c420f19 "REPOSITORY/MDL-13766, allow numbers in repository name" 2009-01-09 01:57:56 +00:00
skodak
d1aa1e4855 MDL-17758 fixed hardcoded /admin/ links 2009-01-01 14:25:29 +00:00
nicolasconnault
dbc0194458 MDL_13766 Refactoring of core repository code and added first unit tests 2008-11-26 07:03:10 +00:00