GitHub/WoltLab/WCF.git
13 years agoChanges the way WCF.Collapsible.Remote handles AJAX-objectIDs
Matthias Schmidt [Sun, 25 Dec 2011 19:44:41 +0000 (20:44 +0100)]
Changes the way WCF.Collapsible.Remote handles AJAX-objectIDs

Now, the default objectIDs property of the `AbstractDatabaseObject` class is used instead of a new parameter, which makes it easier reading the relevant objects without having to set the object ID(s) manually.

13 years agoFixed i18n support for textarea elements
Alexander Ebert [Thu, 22 Dec 2011 19:03:43 +0000 (20:03 +0100)]
Fixed i18n support for textarea elements

13 years agoFixed loadApplication() to not init settings in ACP
Alexander Ebert [Thu, 22 Dec 2011 19:00:07 +0000 (20:00 +0100)]
Fixed loadApplication() to not init settings in ACP

13 years agoFixed i18n and ACP access
Alexander Ebert [Thu, 22 Dec 2011 18:39:21 +0000 (19:39 +0100)]
Fixed i18n and ACP access

13 years agoMerge pull request #313 from wbbaddons/templateScriptingCompilerOptimization
Alexander Ebert [Thu, 22 Dec 2011 18:30:43 +0000 (10:30 -0800)]
Merge pull request #313 from wbbaddons/templateScriptingCompilerOptimization

Removing one check as it caused problems

13 years agoRemoving one check as it caused problems
Tim Düsterhus [Thu, 22 Dec 2011 18:29:08 +0000 (19:29 +0100)]
Removing one check as it caused problems

13 years agoMerge branch 'master' of github.com:WoltLab/WCF
Alexander Ebert [Thu, 22 Dec 2011 18:08:47 +0000 (19:08 +0100)]
Merge branch 'master' of github.com:WoltLab/WCF

13 years agoChanges options to no longer require i18n
Alexander Ebert [Thu, 22 Dec 2011 18:08:22 +0000 (19:08 +0100)]
Changes options to no longer require i18n

Thanks @TimWolla for noticing :)

13 years agoComment
Luzifr [Thu, 22 Dec 2011 18:07:20 +0000 (19:07 +0100)]
Comment

13 years agoMerge pull request #249 from wbbaddons/templateScriptingCompilerOptimization
Alexander Ebert [Thu, 22 Dec 2011 17:59:47 +0000 (09:59 -0800)]
Merge pull request #249 from wbbaddons/templateScriptingCompilerOptimization

Template scripting compiler optimization

13 years agoMerge pull request #283 from wbbaddons/fileSizeOptionType
Alexander Ebert [Thu, 22 Dec 2011 17:58:10 +0000 (09:58 -0800)]
Merge pull request #283 from wbbaddons/fileSizeOptionType

Implements an fileSize option-type for easier handling of file sizes.

13 years agoMerge pull request #305 from wbbaddons/regexClass
Alexander Ebert [Thu, 22 Dec 2011 17:54:16 +0000 (09:54 -0800)]
Merge pull request #305 from wbbaddons/regexClass

Adding \wcf\system\Regex

13 years agoFixed multiple language input
Alexander Ebert [Thu, 22 Dec 2011 17:51:01 +0000 (18:51 +0100)]
Fixed multiple language input

i18n-inputs can now be declared optional and will no longer force a value, unless you left out one language. This means if i18n is not required you can leave out the value completely, but once you enable i18n you must give values for ALL installed languages!

Fixes #235
Fixes #282

13 years agoFixed application not be initialized in ACP
Alexander Ebert [Thu, 22 Dec 2011 16:22:33 +0000 (17:22 +0100)]
Fixed application not be initialized in ACP

Please be aware the namespaces will be registered, but loadApplication() will *not* init the application if within ACP.

Fixes #312

13 years agoThat one was too flexible … ;-)
Luzifr [Thu, 22 Dec 2011 13:42:41 +0000 (14:42 +0100)]
That one was too flexible … ;-)

13 years agoMakes the topMenu drop-downs more beautiful
Luzifr [Thu, 22 Dec 2011 13:05:52 +0000 (14:05 +0100)]
Makes the topMenu drop-downs more beautiful

13 years agoMaking the CSS files more flexible
Luzifr [Wed, 21 Dec 2011 18:23:54 +0000 (19:23 +0100)]
Making the CSS files more flexible

(and smaller)

13 years agoGoing back to "dropdown"!
Luzifr [Wed, 21 Dec 2011 16:15:19 +0000 (17:15 +0100)]
Going back to "dropdown"!

13 years agoGoing back to "dropdown"!
Luzifr [Wed, 21 Dec 2011 16:14:52 +0000 (17:14 +0100)]
Going back to "dropdown"!

13 years agoGoing back to "dropdown"!
Luzifr [Wed, 21 Dec 2011 16:06:06 +0000 (17:06 +0100)]
Going back to "dropdown"!

13 years agoMerge pull request #311 from Gravatronics/bug/cacheListLargeButtons
Harald Szekely [Wed, 21 Dec 2011 14:21:15 +0000 (06:21 -0800)]
Merge pull request #311 from Gravatronics/bug/cacheListLargeButtons

Fixes wrong "largeButtons" css class in cache list template

13 years agoFixes wrong "largeButtons" css class in cache list template
Matthias Schmidt [Wed, 21 Dec 2011 14:05:39 +0000 (15:05 +0100)]
Fixes wrong "largeButtons" css class in cache list template

13 years agoMore work on sidebars
Luzifr [Wed, 21 Dec 2011 13:41:41 +0000 (14:41 +0100)]
More work on sidebars

The profile-sidebar now has the same structure as the one in the ACP;
Changed the way the collapsible arrow icons are being included for all
sidebars, to allow for always opened menu items.

13 years agoGetting rid of "clear: both"
Luzifr [Tue, 20 Dec 2011 18:13:47 +0000 (19:13 +0100)]
Getting rid of "clear: both"

13 years agoImplemented quick search (replaces Suggestions)
Alexander Ebert [Tue, 20 Dec 2011 18:08:49 +0000 (19:08 +0100)]
Implemented quick search (replaces Suggestions)

13 years agoThat fixes the breadcrumbs
Luzifr [Tue, 20 Dec 2011 15:22:55 +0000 (16:22 +0100)]
That fixes the breadcrumbs

(when a sidebar is there)

13 years agoDropdowns reloaded (still not final!)
Luzifr [Tue, 20 Dec 2011 15:20:47 +0000 (16:20 +0100)]
Dropdowns reloaded (still not final!)

13 years agoWork-around for ACL
Alexander Ebert [Tue, 20 Dec 2011 13:52:48 +0000 (14:52 +0100)]
Work-around for ACL

13 years agoOne more change for the dropdowns
Luzifr [Tue, 20 Dec 2011 13:35:25 +0000 (14:35 +0100)]
One more change for the dropdowns

13 years agoRepaired user-list-dropdown
Luzifr [Tue, 20 Dec 2011 13:32:20 +0000 (14:32 +0100)]
Repaired user-list-dropdown

This will be the way all menus will function soon …

13 years agoRemoved obsolete function
Marcel Werk [Mon, 19 Dec 2011 16:46:52 +0000 (17:46 +0100)]
Removed obsolete function

closes #300

13 years agoMerge branch 'master' of github.com:WoltLab/WCF
Marcel Werk [Mon, 19 Dec 2011 16:16:23 +0000 (17:16 +0100)]
Merge branch 'master' of github.com:WoltLab/WCF

13 years agoAdded object class name
Marcel Werk [Mon, 19 Dec 2011 16:16:11 +0000 (17:16 +0100)]
Added object class name

13 years agoSmall optical improvement
Luzifr [Mon, 19 Dec 2011 15:22:06 +0000 (16:22 +0100)]
Small optical improvement

13 years agoMerge pull request #308 from wbbaddons/balloonTooltipTitleRemove
Alexander Ebert [Mon, 19 Dec 2011 12:30:10 +0000 (04:30 -0800)]
Merge pull request #308 from wbbaddons/balloonTooltipTitleRemove

Remove title of balloon-tooltip-item when it changed

13 years agoReplaced raw number with sqlLimit reference
Alexander Ebert [Mon, 19 Dec 2011 12:25:08 +0000 (13:25 +0100)]
Replaced raw number with sqlLimit reference

13 years agoAdded sidebar placeholder
Marcel Werk [Sun, 18 Dec 2011 15:27:56 +0000 (16:27 +0100)]
Added sidebar placeholder

13 years agoRemove title of balloon-tooltip-item when it changed
Tim Düsterhus [Sun, 18 Dec 2011 13:53:49 +0000 (14:53 +0100)]
Remove title of balloon-tooltip-item when it changed

13 years agoImproved error-handling of \wcf\system\Regex
Tim Düsterhus [Sat, 17 Dec 2011 14:39:11 +0000 (15:39 +0100)]
Improved error-handling of \wcf\system\Regex

13 years agoAdding \wcf\system\Regex
Tim Düsterhus [Sat, 17 Dec 2011 12:39:32 +0000 (13:39 +0100)]
Adding \wcf\system\Regex

That way we can typehint regexes and have object-oriented access on regexes.

There is no longer a need to add or escape the delimiters, this is all done by the Regex-class.
The modifiers are added via a bitmask as the second parameter:
Valid modifiers are:
Regex::CASE_INSENSITIVE (add i)
Regex::EVAL_REPLACEMENT (add e)
Regex::UNGREEDY (add U)
Regex::NO_ANALYSE (don't add s)

Usage:

```
$regex = new Regex('^http(s)?://(www\.)woltlab\.(com|de|info)/', Regex::CASE_INSENSITIVE);
var_dump($regex->match('http://www.woltlab.com/pluginstore/')); // int(1)
var_dump($regex->getMatches()); // array with all matched substrings

var_dump(Regex::compile('[a-z]')->replace('asdf345', '')); // string(3) "345"
var_dump(Regex::compile('[a-z]')->replace('asdf345', new Callback(function ($matches) {
return 'x';
})); // string(7) "xxxx345"
```

13 years agoRemoved Profile Comment styles from here
Luzifr [Fri, 16 Dec 2011 17:29:39 +0000 (18:29 +0100)]
Removed Profile Comment styles from here

13 years agoSmall correction
Luzifr [Fri, 16 Dec 2011 15:45:14 +0000 (16:45 +0100)]
Small correction

13 years agoAdded missing language variables
Alexander Ebert [Fri, 16 Dec 2011 13:45:51 +0000 (14:45 +0100)]
Added missing language variables

13 years agoFixed ACP package list
Alexander Ebert [Fri, 16 Dec 2011 13:16:15 +0000 (14:16 +0100)]
Fixed ACP package list

13 years agoMerge pull request #302 from max-m/patch-5
Alexander Ebert [Thu, 15 Dec 2011 19:42:19 +0000 (11:42 -0800)]
Merge pull request #302 from max-m/patch-5

Fixed HTML - added forgotten "

13 years agoSmall changes
Luzifr [Thu, 15 Dec 2011 18:25:20 +0000 (19:25 +0100)]
Small changes

13 years agoFixed HTML - added forgotten "
max-m [Thu, 15 Dec 2011 17:58:16 +0000 (18:58 +0100)]
Fixed HTML - added forgotten "

13 years agoDisabled automatic transactions for now
Alexander Ebert [Thu, 15 Dec 2011 15:34:15 +0000 (16:34 +0100)]
Disabled automatic transactions for now

13 years agoEnhanced database exceptions
Alexander Ebert [Thu, 15 Dec 2011 15:22:39 +0000 (16:22 +0100)]
Enhanced database exceptions

13 years agoUsing transaction now
Alexander Ebert [Thu, 15 Dec 2011 15:03:37 +0000 (16:03 +0100)]
Using transaction now

Changes to PreparedStatement: execute() will now automatically wrap itself in a transaction before committing changes, including an automatic rollback on failure.

If you want to send multiple queries at once, you should wrap the whole loop in a transaction and use executeUnbuffered() instead.

You SHOULD NOT use executeUnbuffered() without a transaction.

13 years agoMerge pull request #272 from Gravatronics/bug/DBOActionUpdateData
Alexander Ebert [Wed, 14 Dec 2011 23:25:15 +0000 (15:25 -0800)]
Merge pull request #272 from Gravatronics/bug/DBOActionUpdateData

Fixes a possible bug in AbstractDatabaseObjectAction::update()

13 years agoMerge pull request #298 from wbbaddons/getLinkPageMenu
Alexander Ebert [Wed, 14 Dec 2011 23:24:44 +0000 (15:24 -0800)]
Merge pull request #298 from wbbaddons/getLinkPageMenu

Adding getLink()-method for page-menu

13 years agoMerge pull request #291 from max-m/patch-4
Alexander Ebert [Wed, 14 Dec 2011 23:23:38 +0000 (15:23 -0800)]
Merge pull request #291 from max-m/patch-4

Fixes menu item options not saved in database

13 years agoMerge pull request #275 from wbbaddons/mailSenderOptimizatio
Alexander Ebert [Wed, 14 Dec 2011 23:22:58 +0000 (15:22 -0800)]
Merge pull request #275 from wbbaddons/mailSenderOptimizatio

Mail sender optimization

13 years agoMerge pull request #274 from wbbaddons/breadcrumbsSPL
Alexander Ebert [Wed, 14 Dec 2011 23:22:35 +0000 (15:22 -0800)]
Merge pull request #274 from wbbaddons/breadcrumbsSPL

Use SPL-Interfaces in \wcf\system\breadcrumb\Breadcrumbs

13 years agoMerge pull request #278 from Gravatronics/bug/AbstractOptionListFormValidate
Alexander Ebert [Wed, 14 Dec 2011 23:20:17 +0000 (15:20 -0800)]
Merge pull request #278 from Gravatronics/bug/AbstractOptionListFormValidate

Fixes bug in AbstractOptionListForm::validate()

13 years agoMerge pull request #279 from wbbaddons/WCFTemplateFix
Alexander Ebert [Wed, 14 Dec 2011 23:19:55 +0000 (15:19 -0800)]
Merge pull request #279 from wbbaddons/WCFTemplateFix

Fixing WCF.Template

13 years agoMerge pull request #281 from max-m/patch-2
Alexander Ebert [Wed, 14 Dec 2011 23:19:20 +0000 (15:19 -0800)]
Merge pull request #281 from max-m/patch-2

ZipFile doesn't exist but GZipFile ;)

13 years agoMerge pull request #301 from wbbaddons/fileUtilImprovements
Alexander Ebert [Wed, 14 Dec 2011 23:18:03 +0000 (15:18 -0800)]
Merge pull request #301 from wbbaddons/fileUtilImprovements

(add|remove)(Leading|Trailing)Slash rewritten

13 years ago(add|remove)(Leading|Trailing)Slash rewritten
Tim Düsterhus [Wed, 14 Dec 2011 18:49:01 +0000 (19:49 +0100)]
(add|remove)(Leading|Trailing)Slash rewritten

13 years agoSome optimizations
Luzifr [Wed, 14 Dec 2011 18:06:49 +0000 (19:06 +0100)]
Some optimizations

Deleted obsolete declarations; Changed syntax of a declaration; Some
comments added.

13 years agoSmall bug fix
Luzifr [Wed, 14 Dec 2011 14:07:40 +0000 (15:07 +0100)]
Small bug fix

13 years agoAnother small change.
Luzifr [Tue, 13 Dec 2011 18:57:10 +0000 (19:57 +0100)]
Another small change.

13 years agoSmall change
Luzifr [Tue, 13 Dec 2011 18:43:16 +0000 (19:43 +0100)]
Small change

13 years agoAdding getLink()-method for page-menu
Tim Düsterhus [Mon, 12 Dec 2011 16:45:12 +0000 (17:45 +0100)]
Adding getLink()-method for page-menu

13 years agoMatch floating point numbers as well
Tim Düsterhus [Mon, 12 Dec 2011 14:09:17 +0000 (15:09 +0100)]
Match floating point numbers as well

Valid numbers are (when . is the decimal-point):
1024
1.02
.5

13 years agoMerge pull request #285 from wbbaddons/stripHTMLComments
Alexander Ebert [Sat, 10 Dec 2011 20:21:15 +0000 (12:21 -0800)]
Merge pull request #285 from wbbaddons/stripHTMLComments

Strip HTML comments as well in StringUtil::stripHTML()

13 years agoMerge pull request #294 from wbbaddons/wcfJSSemicolon
Alexander Ebert [Sat, 10 Dec 2011 20:20:41 +0000 (12:20 -0800)]
Merge pull request #294 from wbbaddons/wcfJSSemicolon

Adding missing semicolons

13 years agoMerge pull request #292 from wbbaddons/fixUSH
Alexander Ebert [Sat, 10 Dec 2011 20:19:58 +0000 (12:19 -0800)]
Merge pull request #292 from wbbaddons/fixUSH

Fix UserStorageHandler

13 years agoAdding missing semicolons
Tim Düsterhus [Sat, 10 Dec 2011 15:06:47 +0000 (16:06 +0100)]
Adding missing semicolons

13 years agoExamine packageID as well when checking whether the cache is loaded
Tim Düsterhus [Sat, 10 Dec 2011 12:12:33 +0000 (13:12 +0100)]
Examine packageID as well when checking whether the cache is loaded

13 years agoFixing UserStorageHandler
Tim Düsterhus [Sat, 10 Dec 2011 12:07:49 +0000 (13:07 +0100)]
Fixing UserStorageHandler

$packageID was not correctly passed.

13 years agoFixes menu item options not saved in database
max-m [Fri, 9 Dec 2011 22:07:32 +0000 (23:07 +0100)]
Fixes menu item options not saved in database

13 years agoRemoved useless declaration
Luzifr [Thu, 8 Dec 2011 17:40:20 +0000 (18:40 +0100)]
Removed useless declaration

13 years agoStrip HTML comments as well in StringUtil::stripHTML()
Tim Düsterhus [Thu, 8 Dec 2011 15:55:18 +0000 (16:55 +0100)]
Strip HTML comments as well in StringUtil::stripHTML()

Fixes https://www.woltlab.com/bugtracker/index.php?page=Bug&bugID=428

13 years agoImplements an fileSize option-type for easier handling of file sizes.
Tim Düsterhus [Wed, 7 Dec 2011 16:21:23 +0000 (17:21 +0100)]
Implements an fileSize option-type for easier handling of file sizes.

It transparently converts inputs like 42 kB or 1337 MiB to Integers to
save in the database and converts the back to strings in the ACP.

13 years agoMerge pull request #280 from max-m/patch-1
Harald Szekely [Mon, 5 Dec 2011 18:35:18 +0000 (10:35 -0800)]
Merge pull request #280 from max-m/patch-1

Changed "style.css" to "wcf.css" ...

13 years agoZipFile doesn't exist but GZipFile ;)
max-m [Mon, 5 Dec 2011 18:06:25 +0000 (19:06 +0100)]
ZipFile doesn't exist but GZipFile ;)

13 years agoChanged "style.css" to "wcf.css" according to https://github.com/WoltLab/WCF/commit...
max-m [Mon, 5 Dec 2011 17:39:03 +0000 (18:39 +0100)]
Changed "style.css" to "wcf.css" according to https://github.com/WoltLab/WCF/commit/c9591332fe488fec4920f7a8fc634e04587b38dc

13 years ago"dropdown" -> "dropDown"
Luzifr [Mon, 5 Dec 2011 16:58:14 +0000 (17:58 +0100)]
"dropdown" -> "dropDown"

I don't like that change, because too much CamelCase makes me sick and
destroys readability, but for consistency-reasons i'll do it …

13 years agoRenamed style-files
Luzifr [Mon, 5 Dec 2011 15:26:12 +0000 (16:26 +0100)]
Renamed style-files

13 years agoFixing WCF.Template
Tim Düsterhus [Mon, 5 Dec 2011 13:21:21 +0000 (14:21 +0100)]
Fixing WCF.Template

13 years agoCorrected comment syntax
Luzifr [Sun, 4 Dec 2011 15:13:16 +0000 (16:13 +0100)]
Corrected comment syntax

13 years agoFixes bug in AbstractOptionListForm::validate()
Matthias Schmidt [Sun, 4 Dec 2011 12:42:00 +0000 (13:42 +0100)]
Fixes bug in AbstractOptionListForm::validate()

Forms that extend AbstractOptionListForm validate first, but their entries in the errorType property are overwritten by the option handler's errors.

13 years agoUsers can now be added through ACP again
Alexander Ebert [Fri, 2 Dec 2011 19:27:38 +0000 (20:27 +0100)]
Users can now be added through ACP again

Fixes #273

13 years agoJust a small fix
Luzifr [Fri, 2 Dec 2011 15:20:15 +0000 (16:20 +0100)]
Just a small fix

13 years agoCollapsible sidebar button optimized
Luzifr [Fri, 2 Dec 2011 14:47:26 +0000 (15:47 +0100)]
Collapsible sidebar button optimized

Now we only see 3 arrows inside that tall collapse-"button", if the
page gets longer than 600 pixels.

13 years agoReverted 2febb84
Alexander Ebert [Fri, 2 Dec 2011 14:30:01 +0000 (15:30 +0100)]
Reverted 2febb84

13 years agoMerge pull request #264 from wbbaddons/fqnIllegalLinkException
Alexander Ebert [Fri, 2 Dec 2011 14:23:28 +0000 (06:23 -0800)]
Merge pull request #264 from wbbaddons/fqnIllegalLinkException

Fixing fully qualified name of IllegalLinkException

13 years agoMerge pull request #269 from wbbaddons/getController
Alexander Ebert [Fri, 2 Dec 2011 14:23:10 +0000 (06:23 -0800)]
Merge pull request #269 from wbbaddons/getController

Adding Request::getController

13 years agoImplode will already return an empty string.
Tim Düsterhus [Thu, 1 Dec 2011 21:52:18 +0000 (22:52 +0100)]
Implode will already return an empty string.

13 years agoUse a type-secure check
Tim Düsterhus [Thu, 1 Dec 2011 21:50:55 +0000 (22:50 +0100)]
Use a type-secure check

13 years agoUse a real signature separated with --
Tim Düsterhus [Thu, 1 Dec 2011 21:50:34 +0000 (22:50 +0100)]
Use a real signature separated with --

13 years agoFixes a possible bug in AbstractDatabaseObjectAction::update()
Matthias Schmidt [Thu, 1 Dec 2011 21:45:25 +0000 (22:45 +0100)]
Fixes a possible bug in AbstractDatabaseObjectAction::update()

This bug currently occurs if you try to edit the profile inline in the profile itself (Error: "Undefined index: data"). The reason for this bug is that the after saving the input data, the "real" user data isn't updated, only their options which is handled by the UserAction separately (UserAction, line 140), so 'data' doesn't always need to exist.

13 years agoUse SPL-Interfaces in \wcf\system\breadcrumb\Breadcrumbs
Tim Düsterhus [Thu, 1 Dec 2011 21:42:43 +0000 (22:42 +0100)]
Use SPL-Interfaces in \wcf\system\breadcrumb\Breadcrumbs

Countable and Iterator are implemented.

13 years agoFixes floating problem
Luzifr [Thu, 1 Dec 2011 19:32:57 +0000 (20:32 +0100)]
Fixes floating problem

13 years agoMaking the strings shorter
Luzifr [Thu, 1 Dec 2011 18:15:17 +0000 (19:15 +0100)]
Making the strings shorter

13 years agoSmall fixes
Luzifr [Thu, 1 Dec 2011 18:10:06 +0000 (19:10 +0100)]
Small fixes

13 years agoMerge pull request #270 from Gravatronics/bug/packageUpdatePackageID
Alexander Ebert [Thu, 1 Dec 2011 17:04:34 +0000 (09:04 -0800)]
Merge pull request #270 from Gravatronics/bug/packageUpdatePackageID

Fixes bug during package update

13 years agoMerge pull request #271 from Gravatronics/bug/userOptionUpdate
Alexander Ebert [Thu, 1 Dec 2011 17:04:15 +0000 (09:04 -0800)]
Merge pull request #271 from Gravatronics/bug/userOptionUpdate

Fixes wrong method name in UserOptionEditor::update()