Commit Graph

24767 Commits

Author SHA1 Message Date
stronk7 ed9fdf3e8b Some wrong isset sentences were forcing to
be always casesensitive and fullmatch!

Changed from !isset() to empty() to evaluate true/false correctly.
2005-05-08 17:53:32 +00:00
stronk7 9e92e26590 Solved problem with arrays of linkobjects being processed
by preg_quoted() causing real problems under PHP5. Now such
calculatios are cached if possible (PHP5). See bug 3148.
(http://moodle.org/bugs/bug.php?op=show&bugid=3138)
2005-05-08 17:25:28 +00:00
moodler a09e99ea1c Added new information to the HTMLArea popup error when trying to use Paste
and made it translatable.
2005-05-08 14:56:34 +00:00
julmis f9b69d10f9 HTMLArea.formathtml still not working correctly I've comment it out. 2005-05-07 11:53:19 +00:00
moodler 0a194c4c03 Google say they want 404 for prefetch requests 2005-05-07 08:20:34 +00:00
moodler 7cbe6afeaa Cookies are not used with guests 2005-05-07 03:10:48 +00:00
martinlanghoff d719609931 Merged from MOODLE_14_STABLE - Block link prefetching from Mozilla and Google Web Accelerator. 2005-05-07 03:07:08 +00:00
moodler ff17bbebce Information wasn't being printed on-screen before the javascript redirect
was kicking in. It was either a problem with the PHP flush() function or
in a browsers handling of half output XHTML.
Either way the fix was to include the delay in the javascript.
Messages during a redirect should now be displayed correctly.

Bug 3118. (SE)
2005-05-06 09:29:02 +00:00
urs_hunkler 3e8506b62f On the admin user page you select "forum posts" which becomes the active selection in the second row. This should be visualized in the tabs. Therefore I added the parameter "$activetwo" to the tabs functions to be able to set the class "activetwo" for the active tab in the second row. 2005-05-05 09:32:33 +00:00
moodler 158de84670 Better loggedinas string for guest users 2005-05-05 04:22:26 +00:00
moodler a756cf1d01 Fixed group link! 2005-05-05 02:15:21 +00:00
stronk7 a8936222b1 Added some comments to remember why they are there... ;-) 2005-05-04 23:14:09 +00:00
stronk7 4e8f2e6ba3 Changed call from preg_replace() to preg_replace_callback() to avoid
some double backslashes present yet. This method doesn't addslashes()
automatically like the old one (so kses_stripslashes() is not needed).

All we have to to is to stripslashes() before calling kses and addslashes()
after it. Only in clean_param(), because params arrive always slashed
to Moodle. This seems to be the correct approach documented in:
http://sourceforge.net/project/shownotes.php?group_id=81853&release_id=302996
2005-05-04 23:09:43 +00:00
moodler 0549198cf0 A fix for kses problems with quotes ... 2005-05-04 18:25:35 +00:00
moodler 5395334d00 Added support for all Open Office 1.0 and 2.0 file types (bug 3068) 2005-05-04 15:19:00 +00:00
moodler f64c1ef666 Fix log entry for failed logins. Bug 3076. (SE) 2005-05-04 07:06:24 +00:00
moodler 5eecb8cb57 Fixes from Mits for bug 3101 to fix multi-byte search results 2005-05-03 16:37:01 +00:00
moodler cd76de7edc Some more "protocols" actually CSS tags 2005-05-03 16:09:39 +00:00
thepurpleblob 2d81e9080a Changed include to require for base_block class. Won't get far without this
and puts error message in the right place if there is a problem
2005-05-03 12:23:48 +00:00
julmis 0d0cfc3bc9 Adding addslashes alert strings 2005-05-03 10:00:49 +00:00
moodler 5744be4798 Some comments about why the author isn't there 2005-05-02 16:28:14 +00:00
moodler 6bd20d7335 More tweaking. Now it displays especially nice in Tiger. ;-) 2005-05-02 16:02:09 +00:00
moodler 9d57574775 Slight tweaking to rss formatting 2005-05-02 15:54:24 +00:00
martinlanghoff 47121b3865 Now comments don't break Zone continuation, should fix reported issues with the Europe/Paris zone definition. 2005-05-02 10:26:26 +00:00
moodler e3cc2a8084 Removed fulldelete function 2005-05-02 06:06:45 +00:00
defacer 8abc54c4f0 Updating the timezone lists with the Manila fix and also the glaring Paris
mess-up. Eagle Eye Eloy strikes again!
2005-05-01 17:13:30 +00:00
defacer 28c66824e7 Fixing two bugs:
1. When user was using "Server's local time", and the server was set up to
   use DST, generated timestamps must have been wrong in DST periods (I
   haven't backtracked to test this, but the code reads this way).

2. On Eloy's Mac (let's not generalize without data), passing is_dst = 0 to
   gmmktime caused it to return WRONG results!

   The PHP docs clearly state that in_dst does NOT affect the return value,
   which is true for me but in Eloy's case it was a lie. Obviously PHP bug here.

Also, moved the if($applydst) check into the else branch because it would do
nothing at all if (abs($timezone) > 13) in any case.


I hope Eloy keeps finding more bugs because he promised me a beer for this fix ;-)
2005-05-01 16:50:35 +00:00
moodler 9e33ce2c2c User ->trackforums now defaults to OFF, to save CPU on default installs 2005-05-01 15:07:52 +00:00
defacer ff6191b742 On second thought, moving the cache retrieval out of the loop should eliminate
up to ten or so function calls per page view. I don't know how expensive they
are, but let's take what we can.
2005-04-30 03:18:02 +00:00
defacer 9b68732055 Extra check in blocks_preferred_width: don't examine any instance if that
block is not visible. Apart from fixing a bug, this is also they key to
fixing broken behavior with legacy 1.4 blocks.
2005-04-30 03:14:42 +00:00
defacer 61abc65bb9 New function block_is_compatible(), if it returns anything but true and you
decide to do anything with the block your warranty is void.
2005-04-30 03:08:04 +00:00
julmis c223e47712 Added iframe, object and applet to closingTags list
in needsClosingTag function
2005-04-28 20:56:07 +00:00
julmis d3a144d3b6 Fixing "removing" (before bold text underlined and so on) necessary spaces
when editor does format html to better shape (increase readability)
2005-04-28 10:40:46 +00:00
julmis b1839b0492 Make editor width always as same as toolbar's width 2005-04-27 23:11:27 +00:00
paca70 9c8513599b handle tinyints as integers when using postgresql 2005-04-27 19:24:48 +00:00
stronk7 902c63b023 Reducing a bit the number of replacements performed by the filter. ;-) 2005-04-27 18:34:38 +00:00
defacer 0c24431590 Fix for bug 3045:
Now usertimezone() gives a correct human-readable string in all cases.
2005-04-27 03:42:07 +00:00
moodler f401cc9719 Moved a generic function over 2005-04-26 15:51:31 +00:00
moodler 0b78f2b1bd By default editing teachers should see all groups even if they are in a group 2005-04-26 08:00:56 +00:00
moodler f9a2e5157f Fixed bug mentioned here http://moodle.org/mod/forum/discuss.php?d=22645 2005-04-26 07:45:09 +00:00
moodler b71772e25e MOved updating of user forum into the right place 2005-04-25 18:07:14 +00:00
moodler a00420fb30 Added some new types for Hotpot files 2005-04-25 14:09:19 +00:00
julmis 0e50f9b268 Merged from MOODLE_14_STABLE
Added charset to head part of the page.
2005-04-24 22:03:42 +00:00
skodak 409fad8892 fixed redirection after delete and added check of selected files SC#111 2005-04-24 20:15:06 +00:00
mchurch bce5c2cd47 Added user prefernce for forum tracking. 2005-04-24 19:52:18 +00:00
moodler 55b734fb84 Better support for language styles 2005-04-24 04:13:18 +00:00
moodler efca05b447 Added a double-check that should stop the locale-switching that's been happening 2005-04-23 15:16:43 +00:00
moodler 29e91ef724 Embedding the session checking a little better 2005-04-23 15:02:00 +00:00
moodler 2a0cf3cabb Add slashes to text - lesson learned from moodle.org! 2005-04-22 13:17:56 +00:00
moodler 705a2aa45c Reverting Jon's change 2005-04-22 06:24:57 +00:00