- Convert to is_dir, then?
- Okay!
- What does the 'be insert' mean, if it's not a typo....? :unsure:
- Okay!
- What does the 'be insert' mean, if it's not a typo....? :unsure:
call_hook('get_boardindex', array(&$boardIndexOptions, $boardIndexOptions['include_categories'] ? &$categories : &$this_category));Also note that $admin_areas is now a global, so the admin menu hook doesn't need to specify it as a param.
if you modify the admin menu, you'll need to manually remove the cache file, or run clean_cache('css', 'admenu') through a hook or something.
Added three icons to the topic moderation menu. Only visible to members with the correct permissions.
Package functions don't need to declare admin.css, since it's already declared by that time. (PackageGet.php, Packages.php)
Why? It wasn't part of $context originally for a reason: security. The only way it could be modified was through the defined hook, because as soon as it's been back from the hook, housekeeping is done then it's sent off to createMenu, whereupon it is discarded.Quote Also note that $admin_areas is now a global, so the admin menu hook doesn't need to specify it as a param.
I'd rather automate that if possible. While it's not particularly ideal to sit and retest the entire menu structure for changes, if it's been to a hook, the hook is going to have added some items which will likely negate the cache.Quote if you modify the admin menu, you'll need to manually remove the cache file, or run clean_cache('css', 'admenu') through a hook or something.
It's only an icon cache... I'm caching ALL of the icons in the array, regardless of whether they can be shown to the user. Small enough anyway.
<?php
$schema = '/path/to/other/plugin-info.rng';
$document = '/path/to/plugin-info.xml';
$xml_reader = new XMLReader();
$xml_reader->open($document);
$xml_reader->setRelaxNGSchema($schema);
$valid = true;
while ($xml_reader->read())
if (!$xml_reader->isValid())
$valid = false;
var_dump($valid);
?>